DECODER: Add support for OSSL_FUNC_decoder_does_selection()
authorRichard Levitte <levitte@openssl.org>
Mon, 26 Oct 2020 12:08:54 +0000 (13:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Nov 2020 10:42:06 +0000 (11:42 +0100)
commit67c91ca23eae175a08f0f0c60be6e6957334d25e
tree0be1bcc38d78ca44d8ae714fd1d913f99ac568a4
parentebfdb63d96496274106b4192fda6039cbb272bae
DECODER: Add support for OSSL_FUNC_decoder_does_selection()

OSSL_FUNC_decoder_does_selection() is a dispatchable decoder implementation
function that should return 1 if the given |selection| is supported by an
decoder implementation and 0 if not.  This can be used by libcrypto
functionality to figure out if an encoder implementation should be
considered or not.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
crypto/encode_decode/decoder_meth.c
crypto/encode_decode/encoder_local.h
include/openssl/core_dispatch.h