Skip to content

Commit

Permalink
Fix int_ctx_new() error when use 1.1.1n sm2 key and ec method engine
Browse files Browse the repository at this point in the history
Signed-off-by: lan1120 <lanming@huawei.com>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #21170)
  • Loading branch information
lan1120 authored and paulidale committed Jul 18, 2023
1 parent 3d2f96e commit 4c4fefa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/evp/p_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c4fefa

Please sign in to comment.