[#ASN1_STRING_set0]
= ASN1&lowbar;STRING&lowbar;set0
:mrdocs:

Assign an ASN&period;1 string ownership of an existing data buffer&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ASN1&lowbar;STRING&lowbar;set0(
    xref:ASN1_STRING.adoc[ASN1&lowbar;STRING]* str,
    void* data,
    int len);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| String whose content pointer and length are replaced&period;
| *data*
| Buffer that `str` will own (freed by ASN1&lowbar;STRING&lowbar;free)&semi; may be NULL when `len` is 0&period;
| *len*
| Length of `data` in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
