Copy data of length len into an ASN.1 OCTET STRING.
Declared in <openssl/asn1.h>
int
ASN1_OCTET_STRING_set(
ASN1_OCTET_STRING* str,
unsigned char const* data,
int len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| str | Octet string whose content is replaced. |
| data | Bytes to copy into str. |
| len | Number of bytes at data. |