summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/pem/pem_pk8.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/pem/pem_pk8.c')
-rw-r--r--thirdparty/openssl/crypto/pem/pem_pk8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/openssl/crypto/pem/pem_pk8.c b/thirdparty/openssl/crypto/pem/pem_pk8.c
index 5747c7366e..daf210fde0 100644
--- a/thirdparty/openssl/crypto/pem/pem_pk8.c
+++ b/thirdparty/openssl/crypto/pem/pem_pk8.c
@@ -178,6 +178,7 @@ EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,
}
p8inf = PKCS8_decrypt(p8, psbuf, klen);
X509_SIG_free(p8);
+ OPENSSL_cleanse(psbuf, klen);
if (!p8inf)
return NULL;
ret = EVP_PKCS82PKEY(p8inf);