From: lan1120 Date: Sat, 10 Jun 2023 11:36:17 +0000 (+0800) Subject: Fix int_ctx_new() error when use 1.1.1n sm2 key and ec method engine X-Git-Tag: openssl-3.2.0-alpha1~404 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c4fefa5c78a49b63113aec35a2bc8d6d9432436;p=thirdparty%2Fopenssl.git Fix int_ctx_new() error when use 1.1.1n sm2 key and ec method engine Signed-off-by: lan1120 Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21170) --- diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index c3e1ec96270..0fab07c5dac 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -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);