summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1t.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/asn1/asn1t.h')
-rw-r--r--crypto/asn1/asn1t.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h
index 6e1bf87e5c..ed372f8554 100644
--- a/crypto/asn1/asn1t.h
+++ b/crypto/asn1/asn1t.h
@@ -780,6 +780,12 @@ typedef struct ASN1_AUX_st {
return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\
}
+#define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \
+ stname * stname##_dup(stname *x) \
+ { \
+ return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
+ }
+
#define IMPLEMENT_ASN1_FUNCTIONS_const(name) \
IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name)