[#ASN1_ENUMERATED_set]
= ASN1&lowbar;ENUMERATED&lowbar;set
:mrdocs:

Set an ASN&period;1 ENUMERATED to a C long value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;ENUMERATED&lowbar;set(
    xref:ASN1_ENUMERATED.adoc[ASN1&lowbar;ENUMERATED]* a,
    long v);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Enumerated value to update&period;
| *v*
| Value to store&period;
|===


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