ASN1_STRING_set0

Assign an ASN.1 string ownership of an existing data buffer.

Synopsis

Declared in <openssl/asn1.h>

void
ASN1_STRING_set0(
    ASN1_STRING* str,
    void* data,
    int len);

Parameters

NameDescription
strString whose content pointer and length are replaced.
dataBuffer that str will own (freed by ASN1_STRING_free); may be NULL when len is 0.
lenLength of data in bytes.