From e72dbd8e13cbf5a16faaa6c911af5507593dd836 Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Fri, 5 Mar 2021 08:22:56 +1000 Subject: Fix usages of const EVP_MD. Partially fixes #13837 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14474) --- crypto/cms/cms_sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/cms/cms_sd.c') diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index a57943513e..c98d118f4b 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -372,7 +372,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms, ESS_SIGNING_CERT_V2 *sc2 = NULL; int add_sc; - if (md == EVP_sha1() || md == NULL) { + if (md == NULL || EVP_MD_is_a(md, SN_sha1)) { if ((sc = ossl_ess_signing_cert_new_init(signer, NULL, 1)) == NULL) goto err; -- cgit v1.2.3