diff options
author | Richard Levitte <levitte@openssl.org> | 2021-03-16 14:21:42 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-04-02 08:57:47 +0200 |
commit | 1010884e0a6d391d3628ffdb057f1812ef08ed73 (patch) | |
tree | d965c2df61de65f23437a3e64690073411dd9ce4 /crypto/encode_decode/encoder_meth.c | |
parent | 309a78aa305ee14878e453c78ccf9a7dc91264cf (diff) |
Add OSSL_DECODER_description() and OSSL_ENCODER_description()
Fixes #14514
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14656)
Diffstat (limited to 'crypto/encode_decode/encoder_meth.c')
-rw-r--r-- | crypto/encode_decode/encoder_meth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/encode_decode/encoder_meth.c b/crypto/encode_decode/encoder_meth.c index 81a22508d6..de0a66578c 100644 --- a/crypto/encode_decode/encoder_meth.c +++ b/crypto/encode_decode/encoder_meth.c @@ -437,6 +437,11 @@ int OSSL_ENCODER_number(const OSSL_ENCODER *encoder) return encoder->base.id; } +const char *OSSL_ENCODER_description(const OSSL_ENCODER *encoder) +{ + return encoder->base.description; +} + int OSSL_ENCODER_is_a(const OSSL_ENCODER *encoder, const char *name) { if (encoder->base.prov != NULL) { |