]> git.ipfire.org Git - thirdparty/openssl.git/commit
Make sure X509_dup() also dup's any associated EVP_PKEY
authorMatt Caswell <matt@openssl.org>
Thu, 27 May 2021 08:00:47 +0000 (09:00 +0100)
committerPauli <pauli@openssl.org>
Sat, 5 Jun 2021 07:39:27 +0000 (17:39 +1000)
commit6282d6c28456543734defc45f653adeec1362958
treeb1d6d23e0317886150b569c45ae7f1f868d6a8b5
parentc6313780586f94b0542f55c3ffa399f5ad2c7297
Make sure X509_dup() also dup's any associated EVP_PKEY

Otherwise we can end up with a blank EVP_PKEY. If it is later recreated
it can end up with the wrong libctx/propq.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15591)
crypto/x509/x_x509.c