diff options
| author | djm <> | 2012-10-13 21:23:50 +0000 |
|---|---|---|
| committer | djm <> | 2012-10-13 21:23:50 +0000 |
| commit | d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df (patch) | |
| tree | 10ebe51c3542099b0ab8325d8f322372375dc3b4 /src/lib/libcrypto/cms/cms_sd.c | |
| parent | bc685bd401e5657f7fb51b4e1a62a7a5c5ea4098 (diff) | |
| parent | 228cae30b117c2493f69ad3c195341cd6ec8d430 (diff) | |
| download | openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.gz openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.bz2 openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
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)) |
