[#BN_to_ASN1_ENUMERATED]
= BN&lowbar;to&lowbar;ASN1&lowbar;ENUMERATED
:mrdocs:

Convert a BIGNUM to an ASN&period;1 ENUMERATED value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_ENUMERATED.adoc[ASN1&lowbar;ENUMERATED]*
BN&lowbar;to&lowbar;ASN1&lowbar;ENUMERATED(
    xref:BIGNUM.adoc[BIGNUM] const* bn,
    xref:ASN1_ENUMERATED.adoc[ASN1&lowbar;ENUMERATED]* ai);
----

== Return Value

Pointer to the ENUMERATED result (possibly newly allocated), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bn*
| Integer to convert&period;
| *ai*
| Destination ENUMERATED to reuse, or NULL to allocate a new one&period;
|===


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