mirror of
https://github.com/openssl/openssl.git
synced 2025-03-01 19:28:10 +08:00
Fix int_ctx_new() error when use 1.1.1n sm2 key and ec method engine
Signed-off-by: lan1120 <lanming@huawei.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21170)
This commit is contained in:
parent
3d2f96e2c8
commit
4c4fefa5c7
@ -722,6 +722,7 @@ static void detect_foreign_key(EVP_PKEY *pkey)
|
||||
break;
|
||||
# ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_SM2:
|
||||
break;
|
||||
case EVP_PKEY_EC:
|
||||
pkey->foreign = pkey->pkey.ec != NULL
|
||||
&& ossl_ec_key_is_foreign(pkey->pkey.ec);
|
||||
|
Loading…
Reference in New Issue
Block a user