[openssl] OpenSSL_1_1_1-stable update
Dr. Paul Dale
pauli at openssl.org
Tue Nov 16 22:52:26 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via c28bcc507be1b035237892181bbbb28383c3f2be (commit)
from 4204cd6429b8d25e2d96b38b264ef7fa1b67d7be (commit)
- Log -----------------------------------------------------------------
commit c28bcc507be1b035237892181bbbb28383c3f2be
Author: zhaozg <zhaozg at gmail.com>
Date: Fri Nov 12 23:12:46 2021 +0800
evp: fix EVP_PKEY_get0_EC_KEY when EC_KEY is SM2
EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2) will change pkey->type to EVP_PKEY_SM2
CLA: trivial
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17015)
-----------------------------------------------------------------------
Summary of changes:
crypto/evp/p_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 7e262c573b..eb3e117b52 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -525,7 +525,7 @@ int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key)
EC_KEY *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey)
{
- if (pkey->type != EVP_PKEY_EC) {
+ if (EVP_PKEY_base_id(pkey) != EVP_PKEY_EC) {
EVPerr(EVP_F_EVP_PKEY_GET0_EC_KEY, EVP_R_EXPECTING_A_EC_KEY);
return NULL;
}
More information about the openssl-commits
mailing list