summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-02-23 03:16:09 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-02-23 03:16:09 +0000
commitbb5ea36b962453c4d74dab15ac1897725a02707d (patch)
tree3bf427b77627b9c2a45c7f6288deda545822ccca /crypto/pkcs7
parente3a91640739c4c016e234550ed913e7f7f6970f9 (diff)
Initial support for ASN1_ITEM_FUNCTION option to
change the way ASN1 modules are exported. Still needs a bit of work for example the hack which a dummy function prototype to avoid compilers warning about multiple ;s.
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r--crypto/pkcs7/pk7_doit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c
index 022ce46c45..98f3b49fa9 100644
--- a/crypto/pkcs7/pk7_doit.c
+++ b/crypto/pkcs7/pk7_doit.c
@@ -574,7 +574,7 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio)
/* Now sign the attributes */
EVP_SignInit(&ctx_tmp,md_tmp);
alen = ASN1_item_i2d((ASN1_VALUE *)sk,&abuf,
- &PKCS7_ATTR_SIGN_it);
+ ASN1_ITEM_rptr(PKCS7_ATTR_SIGN));
if(!abuf) goto err;
EVP_SignUpdate(&ctx_tmp,abuf,alen);
OPENSSL_free(abuf);
@@ -756,7 +756,7 @@ for (ii=0; ii<md_len; ii++) printf("%02X",md_dat[ii]); printf(" calc\n");
EVP_VerifyInit(&mdc_tmp,EVP_get_digestbynid(md_type));
alen = ASN1_item_i2d((ASN1_VALUE *)sk, &abuf,
- &PKCS7_ATTR_VERIFY_it);
+ ASN1_ITEM_rptr(PKCS7_ATTR_VERIFY));
EVP_VerifyUpdate(&mdc_tmp, abuf, alen);
OPENSSL_free(abuf);