first step of v2 final release

This commit is contained in:
Zhi Guan
2017-11-05 21:00:36 +08:00
parent 480b9e8d88
commit 27bde477a5
395 changed files with 26341 additions and 31364 deletions

View File

@@ -158,7 +158,12 @@ CMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,
{
CMS_ContentInfo *cms;
if (!md)
#ifndef OPENSSL_NO_SHA
md = EVP_sha1();
#else
md = EVP_get_default_digest();
#endif
cms = cms_DigestedData_create(md);
if (!cms)
return NULL;