summaryrefslogtreecommitdiffstats
path: root/crypto
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:58 +1000
commit832dc724287aca09437da48d970ee525bf93c727 (patch)
tree47e691f91c5c87315a50526d8903217f90a85cc7 /crypto
parenta6937244f5d5fc4b51d7c31fd5dac2acff0fc785 (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) (cherry picked from commit 4c4fefa5c78a49b63113aec35a2bc8d6d9432436)
Diffstat (limited to 'crypto')
-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 cd8510643e..6764c6b844 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);