Refactor OSSL_STORE_LOADER_do_all_provided() to behave like OSSL_STORE_LOADER_fetch()
authorRichard Levitte <levitte@openssl.org>
Thu, 10 Jun 2021 05:31:13 +0000 (07:31 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 15 Jun 2021 14:23:24 +0000 (16:23 +0200)
commit29b3fdad2b078f45f840f6e45b0fe483b77dbc6f
treec149f6f0c9ec160a5d8f2599d195668c6555f15a
parent5d8ad7d385f1be0d2ef6fd3bfc91debdf3835c96
Refactor OSSL_STORE_LOADER_do_all_provided() to behave like OSSL_STORE_LOADER_fetch()

This is refactored to use inner_loader_fetch() without any given name,
which is just there to ensure all decoder implementations are made
into methods, and then use ossl_method_store_do_all() to list them
all.

This also adds the internal ossl_store_loader_do_all_prefetched(),
which can be used if pre-fetching needs to be done separately from
listing all the decoder implementations, or if listing may happen
multiple times.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15604)
crypto/store/store_meth.c