[#ASN1_OCTET_STRING_set] = ASN1_OCTET_STRING_set :mrdocs: Copy `data` of length `len` into an ASN.1 OCTET STRING. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_OCTET_STRING_set( xref:ASN1_OCTET_STRING.adoc[ASN1_OCTET_STRING]* str, unsigned char const* data, int len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *str* | Octet string whose content is replaced. | *data* | Bytes to copy into `str.` | *len* | Number of bytes at `data.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#