[#ASN1_STRING_set] = ASN1_STRING_set :mrdocs: Copy `data` of length `len` into an ASN.1 string. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_STRING_set( xref:ASN1_STRING.adoc[ASN1_STRING]* str, void const* data, int len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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).` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#