mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-11-16 17:45:04 +08:00
first step of v2 final release
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user