Improve the performance of d2i_AutoPrivateKey and friends
authorMatt Caswell <matt@openssl.org>
Wed, 1 Mar 2023 17:03:48 +0000 (17:03 +0000)
committerPauli <pauli@openssl.org>
Tue, 14 Mar 2023 21:39:25 +0000 (08:39 +1100)
commitdba97d4c7142621fb279ef2074cd5c0a04eca7d3
treeda866b43be3498e79ed26a96e85d4dc6447992b7
parentfe52208c560fb4d16fc40cfe395032544b82271e
Improve the performance of d2i_AutoPrivateKey and friends

Probe first to see if we have a PKCS8 file to improve decoder performance.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/20416)
crypto/asn1/d2i_pr.c