SM2: Make the EVP_PKEY_METHOD ctrl_str function listen to distid
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Mar 2020 22:00:45 +0000 (23:00 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 15 Mar 2020 18:42:04 +0000 (19:42 +0100)
commit123c2fef14b80f26f5a8504ccf7b819c2975a6fa
tree766b01c65215a03bb2473a606d556f3b4dd1f065
parent70a7dd6f96c28a1a3059bf3d175bfb24449202ae
SM2: Make the EVP_PKEY_METHOD ctrl_str function listen to distid

Because we start using Distinguished ID, we also define the key name
"distid", possibly prefixed with "hex", but keep "sm2_id" and
"sm2_hex_id" for compatibility with GmSSL.

Fixes #11293

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/11302)
crypto/sm2/sm2_pmeth.c