[#ASN1_dup] = ASN1_dup :mrdocs: Deep‐copy an ASN.1 value by encoding with `i2d` then decoding with `d2i.` == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* ASN1_dup( xref:i2d_of_void.adoc[i2d_of_void]* i2d, xref:d2i_of_void.adoc[d2i_of_void]* d2i, void const* x); ---- == Return Value Newly allocated copy, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *i2d* | Encoder that serializes `x` to DER (or returns the required length). | *d2i* | Decoder that rebuilds a heap object from that DER. | *x* | Source object to duplicate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#