Add back in legacy paths for d2i_PrivateKey/d2i_AutoPrivateKey.
authorShane Lontis <shane.lontis@oracle.com>
Mon, 22 Feb 2021 03:03:21 +0000 (13:03 +1000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 23 Feb 2021 08:25:58 +0000 (09:25 +0100)
commit444b25b1e96fa444ffe3a67671796cfc1b599735
tree9a531734cfe9ffe52620ab2a5b49ca69463bd9b6
parentf16f363a85baa6338744e20671c5a227844f2847
Add back in legacy paths for d2i_PrivateKey/d2i_AutoPrivateKey.

Fixes #14263

If the new decoder code fails, it now falls back to the old legacy code
and tries that also.
Tested manually using gost engine master.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/14266)
crypto/asn1/d2i_pr.c