diff options
author | Pauli <pauli@openssl.org> | 2021-04-15 10:33:59 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-04-21 09:27:51 +1000 |
commit | 27344bb82a65ce13de4c9f6c78615fa91d93d3eb (patch) | |
tree | 559d10ac25bb9165529b290b283f240d1ae585cc | |
parent | 192d50087881c031ee60307c8e0460d8470efaa9 (diff) |
cms: remove most references to EVP_sha1()
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14881)
-rw-r--r-- | crypto/cms/cms_smime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index 3ab4cd2e6f..d48bbcb6c7 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -169,6 +169,10 @@ CMS_ContentInfo *CMS_digest_create_ex(BIO *in, const EVP_MD *md, { CMS_ContentInfo *cms; + /* + * Because the EVP_MD is cached and can be a legacy algorithm, we + * cannot fetch the algorithm if it isn't supplied. + */ if (md == NULL) md = EVP_sha1(); cms = ossl_cms_DigestedData_create(md, ctx, propq); |