[#ASN1_TYPE_set_octetstring]
= ASN1&lowbar;TYPE&lowbar;set&lowbar;octetstring
:mrdocs:

Set an ASN1&lowbar;TYPE to an OCTET STRING containing a copy of `data&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;TYPE&lowbar;set&lowbar;octetstring(
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]* a,
    unsigned char* data,
    int len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| ANY value to update&period;
| *data*
| Octets to store&period;
| *len*
| Number of bytes at `data&period;`
|===


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