ASN1_ITEM version of ASN1_dup(). Might want something more efficient later...
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h index 902aebb..ef88bb3 100644 --- a/crypto/asn1/asn1.h +++ b/crypto/asn1/asn1.h
@@ -801,6 +801,8 @@ /* Used to implement other functions */ char *ASN1_dup(int (*i2d)(),char *(*d2i)(),char *x); +void *ASN1_item_dup(const ASN1_ITEM *it, void *x); + #ifndef NO_FP_API char *ASN1_d2i_fp(char *(*xnew)(),char *(*d2i)(),FILE *fp,unsigned char **x); int ASN1_i2d_fp(int (*i2d)(),FILE *out,unsigned char *x);