Clean password buffer on stack for PEM_read_bio_PrivateKey
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 29 Jul 2017 10:19:29 +0000 (12:19 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 29 Jul 2017 13:07:35 +0000 (15:07 +0200)
commit5292833132cc863b66574fe2bbf55e4b2eff7949
treee427733742cf79106b708c528299a8cbbbc5dd19
parent0d72ba5c9c9b2803f2165480592fda8819abf998
Clean password buffer on stack for PEM_read_bio_PrivateKey
and d2i_PKCS8PrivateKey_bio before it goes out of scope.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4047)

(cherry picked from commit 02fd47c8b0930dff9b188fd13bfb9da5e59444a8)
crypto/pem/pem_pk8.c
crypto/pem/pem_pkey.c