Copy data of length len into an ASN.1 string.
Declared in <openssl/asn1.h>
int
ASN1_STRING_set(
ASN1_STRING* str,
void const* data,
int len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| str | String whose content is replaced with a copy of data. |
| data | Bytes to copy; may be a C string when len is -1. |
| len | Number of bytes at data, or -1 to use strlen(data). |