ASN1_item_dup

Deep-copy an ASN.1 value described by it.

Synopsis

Declared in <openssl/asn1.h>

void*
ASN1_item_dup(
    ASN1_ITEM const* it,
    void const* x);

Return Value

Newly allocated copy, or NULL on error; free with ASN1_item_free.

Parameters

NameDescription
itASN.1 item describing the type of x.
xValue to duplicate.