Assign an ASN.1 string ownership of an existing data buffer.
Declared in <openssl/asn1.h>
void
ASN1_STRING_set0(
ASN1_STRING* str,
void* data,
int len);
| Name | Description |
|---|---|
| str | String whose content pointer and length are replaced. |
| data | Buffer that str will own (freed by ASN1_STRING_free); may be NULL when len is 0. |
| len | Length of data in bytes. |