summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorlan1120 <lanming@huawei.com>2023-06-10 19:36:17 +0800
committerPauli <pauli@openssl.org>2023-07-18 12:35:36 +1000
commit4c4fefa5c78a49b63113aec35a2bc8d6d9432436 (patch)
tree57d81f17cf39191b196247f9767acf866fb0a33d /crypto/evp
parent3d2f96e2c867fa3e79a453639304b70ba0508076 (diff)
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)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/p_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index c3e1ec9627..0fab07c5da 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);