summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/pem/pem_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/pem/pem_pkey.c')
-rw-r--r--thirdparty/openssl/crypto/pem/pem_pkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/openssl/crypto/pem/pem_pkey.c b/thirdparty/openssl/crypto/pem/pem_pkey.c
index 04d6319a22..e8b3a1b92c 100644
--- a/thirdparty/openssl/crypto/pem/pem_pkey.c
+++ b/thirdparty/openssl/crypto/pem/pem_pkey.c
@@ -120,6 +120,7 @@ EVP_PKEY *PEM_read_bio_PrivateKey(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)
goto p8err;
ret = EVP_PKCS82PKEY(p8inf);