[#ASN1_TYPE_set1]
= ASN1&lowbar;TYPE&lowbar;set1
:mrdocs:

Set an ASN1&lowbar;TYPE to `type,` storing a copy of `value` (unlike ASN1&lowbar;TYPE&lowbar;set)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;TYPE&lowbar;set1(
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]* a,
    int type,
    void const* value);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Destination ANY&sol;CHOICE container to update&period;
| *type*
| ASN&period;1 type tag (V&lowbar;ASN1&lowbar;&ast;)&semi; for V&lowbar;ASN1&lowbar;BOOLEAN, `value` may be NULL to mean FALSE&period;
| *value*
| Pointer to the typed value to copy, or NULL where the type allows it&period;
|===


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