From e4a1d0230016d090ba78bc7092384315f85b0e72 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 15 Jan 2020 01:04:37 +0100 Subject: Modify EVP_CIPHER_is_a() and EVP_MD_is_a() to handle legacy methods too These functions would only handle provided methods, but there are cases where the caller just passes along a received method without knowing the underlying method tech, so might pass along a legacy method. We therefore need to have them handle this case as well so they don't cause any unnecessary surprises. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10845) --- crypto/evp/signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/evp/signature.c') diff --git a/crypto/evp/signature.c b/crypto/evp/signature.c index 119cd322a3..1cef4649ed 100644 --- a/crypto/evp/signature.c +++ b/crypto/evp/signature.c @@ -289,7 +289,7 @@ EVP_SIGNATURE *EVP_SIGNATURE_fetch(OPENSSL_CTX *ctx, const char *algorithm, int EVP_SIGNATURE_is_a(const EVP_SIGNATURE *signature, const char *name) { - return evp_is_a(signature->prov, signature->name_id, name); + return evp_is_a(signature->prov, signature->name_id, NULL, name); } int EVP_SIGNATURE_number(const EVP_SIGNATURE *signature) -- cgit v1.2.3