openssl/providers/implementations/storemgmt
Richard Levitte e73fc81345 STORE: Use the 'expect' param to limit the amount of decoders used
In the provider file: scheme loader implementation, the OSSL_DECODER_CTX
was set up with all sorts of implementations, even if the caller has
declared a limited expectation on what should be loaded, which means
that even though a certificate is expected, all the diverse decoders
to produce an EVP_PKEY are added to the decoding change.

This optimization looks more closely at the expected type, and only
adds the EVP_PKEY related decoder implementations to the chain if
there is no expectation, or if the expectation is one of
OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_PUBKEY, OSSL_STORE_INFO_PKEY.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15066)
2021-04-30 11:15:00 +02:00
..
build.info
file_store_der2obj.c STORE: Simplify error filtering in der2obj_decode() 2021-04-23 20:22:49 +02:00
file_store_local.h der: _ossl prefix DER functions 2020-10-01 11:25:12 +10:00
file_store.c STORE: Use the 'expect' param to limit the amount of decoders used 2021-04-30 11:15:00 +02:00