OSSL_STORE 'file:' scheme: Set input structure for certificates and CRLs
authorRichard Levitte <levitte@openssl.org>
Mon, 30 Aug 2021 11:22:18 +0000 (13:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Sep 2021 19:34:50 +0000 (21:34 +0200)
commit821b3956ec698927281a5b29c55cd87eb7b2793d
tree6c7e8f9214484c751a99ae37af990d61cb0ce917
parent98408852c167d895a662dcda824fd5170cad3f7d
OSSL_STORE 'file:' scheme: Set input structure for certificates and CRLs

When the user expects to load a certificate or a CRL through the
OSSL_STORE loading function, the 'file:' implementation sets the
corresponding structure names in the internal decoder context.
This is especially geared for PEM files, which often contain a mix of
objects, and password prompting should be avoided for objects that
need them, but aren't what the caller is looking for.

Fixes #16224

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