Actually use a legacy route in pem_read_bio_key_legacy()
authorMatt Caswell <matt@openssl.org>
Fri, 28 May 2021 10:07:24 +0000 (11:07 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Jun 2021 17:53:39 +0000 (18:53 +0100)
commitb2f1b36592806afcaae79289c33756fb0af5b4ca
tree35073737fd3e45fe90a2bc3c6399d7ca61e429c7
parent237cb05d342338ac42852cfdec21b900458a537c
Actually use a legacy route in pem_read_bio_key_legacy()

The function pem_read_bio_key_legacy() is a fallback route if we
failed to load a key via a provider. We should be using the legacy
specific d2i functions to force legacy otherwise we end up using a
provider anyway

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15504)
crypto/asn1/d2i_pr.c
crypto/pem/pem_pkey.c
crypto/x509/x_pubkey.c
include/crypto/asn1.h
include/crypto/x509.h