diff options
author | djm <> | 2012-10-13 21:23:50 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:50 +0000 |
commit | 228cae30b117c2493f69ad3c195341cd6ec8d430 (patch) | |
tree | 29ff00b10d52c0978077c4fd83c33b065bade73e /src/lib/libcrypto/cms/cms_sd.c | |
parent | 731838c66b52c0ae5888333005b74115a620aa96 (diff) | |
download | openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.gz openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.tar.bz2 openbsd-228cae30b117c2493f69ad3c195341cd6ec8d430.zip |
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/cms/cms_sd.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_sd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cms/cms_sd.c b/src/lib/libcrypto/cms/cms_sd.c index e3192b9c57..77fbd13596 100644 --- a/src/lib/libcrypto/cms/cms_sd.c +++ b/src/lib/libcrypto/cms/cms_sd.c | |||
@@ -641,7 +641,8 @@ static int cms_SignerInfo_content_sign(CMS_ContentInfo *cms, | |||
641 | cms->d.signedData->encapContentInfo->eContentType; | 641 | cms->d.signedData->encapContentInfo->eContentType; |
642 | unsigned char md[EVP_MAX_MD_SIZE]; | 642 | unsigned char md[EVP_MAX_MD_SIZE]; |
643 | unsigned int mdlen; | 643 | unsigned int mdlen; |
644 | EVP_DigestFinal_ex(&mctx, md, &mdlen); | 644 | if (!EVP_DigestFinal_ex(&mctx, md, &mdlen)) |
645 | goto err; | ||
645 | if (!CMS_signed_add1_attr_by_NID(si, NID_pkcs9_messageDigest, | 646 | if (!CMS_signed_add1_attr_by_NID(si, NID_pkcs9_messageDigest, |
646 | V_ASN1_OCTET_STRING, | 647 | V_ASN1_OCTET_STRING, |
647 | md, mdlen)) | 648 | md, mdlen)) |