summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs7/pk7_mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_mime.c')
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_mime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_mime.c b/src/lib/libcrypto/pkcs7/pk7_mime.c
index 31023f22c6..fad331bf16 100644
--- a/src/lib/libcrypto/pkcs7/pk7_mime.c
+++ b/src/lib/libcrypto/pkcs7/pk7_mime.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pk7_mime.c,v 1.12 2014/10/18 17:20:40 jsing Exp $ */ 1/* $OpenBSD: pk7_mime.c,v 1.13 2016/12/30 15:38:13 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -64,14 +64,14 @@ int
64i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) 64i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)
65{ 65{
66 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, 66 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags,
67 ASN1_ITEM_rptr(PKCS7)); 67 &PKCS7_it);
68} 68}
69 69
70int 70int
71PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) 71PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)
72{ 72{
73 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags, 73 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags,
74 "PKCS7", ASN1_ITEM_rptr(PKCS7)); 74 "PKCS7", &PKCS7_it);
75} 75}
76 76
77int 77int
@@ -88,11 +88,11 @@ SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags)
88 88
89 89
90 return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, 90 return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags,
91 ctype_nid, NID_undef, mdalgs, ASN1_ITEM_rptr(PKCS7)); 91 ctype_nid, NID_undef, mdalgs, &PKCS7_it);
92} 92}
93 93
94PKCS7 * 94PKCS7 *
95SMIME_read_PKCS7(BIO *bio, BIO **bcont) 95SMIME_read_PKCS7(BIO *bio, BIO **bcont)
96{ 96{
97 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7)); 97 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, &PKCS7_it);
98} 98}