diff options
Diffstat (limited to 'lib/libcrypto/pkcs7/pk7_asn1.c')
-rw-r--r-- | lib/libcrypto/pkcs7/pk7_asn1.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libcrypto/pkcs7/pk7_asn1.c b/lib/libcrypto/pkcs7/pk7_asn1.c index 2522a1ae6c7..5e8d69413f3 100644 --- a/lib/libcrypto/pkcs7/pk7_asn1.c +++ b/lib/libcrypto/pkcs7/pk7_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pk7_asn1.c,v 1.8 2015/02/09 16:04:46 jsing Exp $ */ +/* $OpenBSD: pk7_asn1.c,v 1.9 2015/02/10 04:21:50 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -142,7 +142,12 @@ PKCS7_free(PKCS7 *a) ASN1_item_free((ASN1_VALUE *)a, &PKCS7_it); } IMPLEMENT_ASN1_NDEF_FUNCTION(PKCS7) -IMPLEMENT_ASN1_DUP_FUNCTION(PKCS7) + +PKCS7 * +PKCS7_dup(PKCS7 *x) +{ + return ASN1_item_dup(ASN1_ITEM_rptr(PKCS7), x); +} ASN1_NDEF_SEQUENCE(PKCS7_SIGNED) = { ASN1_SIMPLE(PKCS7_SIGNED, version, ASN1_INTEGER), |