Pass the object type and data structure from the pem2der decoder
authorMatt Caswell <matt@openssl.org>
Sat, 13 Feb 2021 14:24:15 +0000 (14:24 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Feb 2021 16:05:22 +0000 (16:05 +0000)
commit70793dbbb983b0f95da30b79e8c8744289062499
tree1085227e419574bb7a5f9297c1ed67db342bb2ca
parent3a2171f6aa0f72ca95210fa80d92214315d1e744
Pass the object type and data structure from the pem2der decoder

The pem2der decoder can infer certain information about the endoded der
data based on the PEM headers. This information should be passed to the
next decoders in the chain to ensure we end up loading the correct type of
thing.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14191)
crypto/store/store_result.c
providers/implementations/encode_decode/decode_pem2der.c