ASN1_STRING_set

Copy data of length len into an ASN.1 string.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_STRING_set(
    ASN1_STRING* str,
    void const* data,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
strString whose content is replaced with a copy of data.
dataBytes to copy; may be a C string when len is -1.
lenNumber of bytes at data, or -1 to use strlen(data).