]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
cms: remove most references to EVP_sha1()
authorPauli <pauli@openssl.org>
Thu, 15 Apr 2021 00:33:59 +0000 (10:33 +1000)
committerPauli <pauli@openssl.org>
Tue, 20 Apr 2021 23:27:51 +0000 (09:27 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14881)

crypto/cms/cms_smime.c

index 3ab4cd2e6f524d255792ab517804a9911be78cf8..d48bbcb6c70024458c7d00c0ee2dee93cf02e134 100644 (file)
@@ -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);