Copy type, data, and flags from str into dst.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_STRING_copy(
    ASN1_STRING* dst,
    ASN1_STRING const* str);

Description

Preserves any ASN1_STRING_FLAG_EMBED bit already set on dst.

Return Value

1 on success, or 0 on failure (including when str is NULL).

Parameters

Name

Description

dst

Destination string; must already be allocated.

str

Source ASN1_STRING whose contents are copied into dst.

Created with MrDocs