PEM to DER decoder: Specify object type and data structure more consistently
authorRichard Levitte <levitte@openssl.org>
Mon, 30 Aug 2021 11:19:30 +0000 (13:19 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Sep 2021 19:34:50 +0000 (21:34 +0200)
commit98408852c167d895a662dcda824fd5170cad3f7d
tree8444bbc4b04b7b1dbbd2791f4ef390561750cb65
parent73dd5d67c506cfeb9bf6183f0c19832c7d3f174d
PEM to DER decoder: Specify object type and data structure more consistently

The data structure wasn't given for recognised certificates or CRLs.
It's better, though, to specify it for those objects as well, so they
can be used to filter what actually gets decoded, which will be
helpful for our OSSL_STORE 'file:' scheme implementation.

Fixes #16224

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16466)
providers/implementations/encode_decode/decode_pem2der.c