]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor OSSL_DECODER_do_all_provided() to behave like OSSL_DECODER_fetch()
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Jun 2021 12:29:07 +0000 (14:29 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 15 Jun 2021 14:21:31 +0000 (16:21 +0200)
commit07562828308417205f39a628af3b78af0d30d308
treeba2bbefcd04ccb2717d2e31a4cc7e21d16d8da6d
parentf0191d0b1373bb7b0c50a0103d63791f51ed3398
Refactor OSSL_DECODER_do_all_provided() to behave like OSSL_DECODER_fetch()

This is refactored to use inner_ossl_decoder_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_decoder_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.

Fixes #15538
Fixes #14837

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