summaryrefslogtreecommitdiffstats
path: root/crypto/cms
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-05 08:22:56 +1000
committerTomas Mraz <tomas@openssl.org>2021-03-22 15:40:04 +0100
commite72dbd8e13cbf5a16faaa6c911af5507593dd836 (patch)
treeec450d9fef6ba2223cfc36ee1865512254f9dd23 /crypto/cms
parentc781eb1c63c243cb64dbe3066a43dc172aaab3b8 (diff)
Fix usages of const EVP_MD.
Partially fixes #13837 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14474)
Diffstat (limited to 'crypto/cms')
-rw-r--r--crypto/cms/cms_sd.c2
1 files changed, 1 insertions, 1 deletions
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;