ASN1_STRING_dup

Deep-copy an ASN.1 string (type, data, and flags).

Synopsis

Declared in <openssl/asn1.h>

ASN1_STRING*
ASN1_STRING_dup(ASN1_STRING const* a);

Return Value

Newly allocated ASN1_STRING copy, or NULL on error; free with ASN1_STRING_free().

Parameters

NameDescription
aSource string to duplicate.