summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_sd.c
diff options
context:
space:
mode:
authorjsing <>2019-08-11 10:15:30 +0000
committerjsing <>2019-08-11 10:15:30 +0000
commitaa695fbdbecb8a63a9f0f512222e04a0be2b9734 (patch)
treea038b26f2da29ed31383201d4852270882e9961e /src/lib/libcrypto/cms/cms_sd.c
parentfa447988cd063cd304b8a827bbc5ad99dea4a159 (diff)
downloadopenbsd-aa695fbdbecb8a63a9f0f512222e04a0be2b9734.tar.gz
openbsd-aa695fbdbecb8a63a9f0f512222e04a0be2b9734.tar.bz2
openbsd-aa695fbdbecb8a63a9f0f512222e04a0be2b9734.zip
Expand ASN.1 macros.
Diffstat (limited to 'src/lib/libcrypto/cms/cms_sd.c')
-rw-r--r--src/lib/libcrypto/cms/cms_sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_sd.c b/src/lib/libcrypto/cms/cms_sd.c
index 6c65844c93..2289c7e8a3 100644
--- a/src/lib/libcrypto/cms/cms_sd.c
+++ b/src/lib/libcrypto/cms/cms_sd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_sd.c,v 1.17 2019/08/10 18:15:52 jsing Exp $ */ 1/* $OpenBSD: cms_sd.c,v 1.18 2019/08/11 10:15:30 jsing Exp $ */
2/* 2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4 * project. 4 * project.
@@ -741,7 +741,7 @@ CMS_SignerInfo_sign(CMS_SignerInfo *si)
741 } 741 }
742 742
743 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf, 743 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf,
744 ASN1_ITEM_rptr(CMS_Attributes_Sign)); 744 &CMS_Attributes_Sign_it);
745 if (!abuf) 745 if (!abuf)
746 goto err; 746 goto err;
747 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0) 747 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0)
@@ -802,7 +802,7 @@ CMS_SignerInfo_verify(CMS_SignerInfo *si)
802 goto err; 802 goto err;
803 803
804 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf, 804 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf,
805 ASN1_ITEM_rptr(CMS_Attributes_Verify)); 805 &CMS_Attributes_Verify_it);
806 if (!abuf) 806 if (!abuf)
807 goto err; 807 goto err;
808 r = EVP_DigestVerifyUpdate(mctx, abuf, alen); 808 r = EVP_DigestVerifyUpdate(mctx, abuf, alen);