提交 619269f5 编写于 作者: C code4lala

openssl 3.x

Signed-off-by: Ncode4lala <fengziteng2@huawei.com>
Change-Id: I4835fe5ca24e634a1ee1b2e869e6cac06adfb804
上级 c90a5aeb
...@@ -125,7 +125,6 @@ EVP_PKEY *GET_EVP_PKEY(const char *key_id) ...@@ -125,7 +125,6 @@ EVP_PKEY *GET_EVP_PKEY(const char *key_id)
{ {
int key_type; int key_type;
EVP_PKEY *wrap_key = NULL; EVP_PKEY *wrap_key = NULL;
RSA *public_rsa = NULL;
EVP_PKEY *pub_key = NULL; EVP_PKEY *pub_key = NULL;
if (key_id == NULL) { if (key_id == NULL) {
...@@ -145,7 +144,7 @@ EVP_PKEY *GET_EVP_PKEY(const char *key_id) ...@@ -145,7 +144,7 @@ EVP_PKEY *GET_EVP_PKEY(const char *key_id)
return NULL; return NULL;
} }
public_rsa = EVP_PKEY_get0_RSA(pub_key); const RSA *public_rsa = EVP_PKEY_get0_RSA(pub_key);
if (public_rsa == NULL ) { if (public_rsa == NULL ) {
wpa_printf(MSG_ERROR, "public_rsa is NULL"); wpa_printf(MSG_ERROR, "public_rsa is NULL");
EVP_PKEY_free(pub_key); EVP_PKEY_free(pub_key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册