Support setting SM2 ID
authorPaul Yang <yang.yang@baishancloud.com>
Tue, 4 Sep 2018 09:21:10 +0000 (17:21 +0800)
committerPaul Yang <yang.yang@baishancloud.com>
Fri, 7 Sep 2018 10:12:26 +0000 (18:12 +0800)
commit4803717f5e3bcfba3e3442e1611f421bf1090a47
treef5745d40a7eeb81e8e49f734ae6f962173981eb7
parent00433bad41bfa492f2e204675d42061314028ff2
Support setting SM2 ID

zero-length ID is allowed, but it's not allowed to skip the ID.

Fixes: #6534

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7113)
15 files changed:
crypto/err/openssl.txt
crypto/evp/digest.c
crypto/evp/evp_lib.c
crypto/evp/m_sigver.c
crypto/evp/pmeth_lib.c
crypto/include/internal/evp_int.h
crypto/include/internal/sm2.h
crypto/include/internal/sm2err.h
crypto/sm2/sm2_err.c
crypto/sm2/sm2_pmeth.c
crypto/sm2/sm2_sign.c
include/openssl/ec.h
include/openssl/evp.h
test/evp_extra_test.c
util/private.num