[#ASN1_ENUMERATED_get]
= ASN1&lowbar;ENUMERATED&lowbar;get
:mrdocs:

Return the value of an ASN&period;1 ENUMERATED as a long (legacy&semi; prefer ASN1&lowbar;ENUMERATED&lowbar;get&lowbar;int64)&period;

== Synopsis

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

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

== Return Value

Converted long value, or 0 if `a` is NULL or the value does not fit in a long&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Enumerated value to read&semi; NULL is treated as 0&period;
|===


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