This commit is contained in:
Dr. Stephen Henson 2006-05-18 17:46:56 +00:00
parent 3ef3e07a49
commit f13a71c66b

View File

@ -170,7 +170,7 @@ int PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,
if (!os)
return 0;
if (!ASN1_STRING_set(os, md, mdlen)
|| PKCS7_add_signed_attribute(si, NID_pkcs9_messageDigest,
|| !PKCS7_add_signed_attribute(si, NID_pkcs9_messageDigest,
V_ASN1_OCTET_STRING, os))
{
ASN1_OCTET_STRING_free(os);