d2i_PrivateKey{,_ex}() and PEM_X509_INFO_read_bio_ex(): Fix handling of RSA/DSA/EC...
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 22 Mar 2021 13:16:56 +0000 (14:16 +0100)
committerDr. David von Oheimb <dev@ddvo.net>
Thu, 8 Apr 2021 13:18:58 +0000 (15:18 +0200)
commitc1fd710297a21336ec0410fe86784c322945b805
treea03b44f007e132f873630fab2bb36d153d92a8d2
parent321ac1f2973c01f4a4a2719e4400c26ff01c3231
d2i_PrivateKey{,_ex}() and PEM_X509_INFO_read_bio_ex(): Fix handling of RSA/DSA/EC private key

This is needed to correct d2i_PrivateKey() after it was changed by commit 576892d78f80cf9a.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14647)
crypto/asn1/d2i_pr.c
crypto/pem/pem_info.c
doc/man3/d2i_PrivateKey.pod
test/certs/ec_privkey_with_chain.pem [new file with mode: 0644]
test/recipes/60-test_x509_check_cert_pkey.t
test/x509_check_cert_pkey_test.c