mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #1717 from JacobBarthelmeh/Testing
sanity check on pkcs8 variable
This commit is contained in:
@ -6428,6 +6428,10 @@ WOLFSSL_PKCS8_PRIV_KEY_INFO* wolfSSL_d2i_PKCS8_PKEY_bio(WOLFSSL_BIO* bio,
|
||||
}
|
||||
|
||||
pkcs8 = wolfSSL_PKEY_new();
|
||||
if (pkcs8 == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pkcs8->pkey.ptr = (char*)XMALLOC(keySz, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
|
||||
if (pkcs8->pkey.ptr == NULL) {
|
||||
wolfSSL_EVP_PKEY_free(pkcs8);
|
||||
|
Reference in New Issue
Block a user