Convert a BIGNUM to an ASN.1 ENUMERATED value.
Declared in <openssl/asn1.h>
ASN1_ENUMERATED*
BN_to_ASN1_ENUMERATED(
BIGNUM const* bn,
ASN1_ENUMERATED* ai);
Pointer to the ENUMERATED result (possibly newly allocated), or NULL on error.
| Name | Description |
|---|---|
| bn | Integer to convert. |
| ai | Destination ENUMERATED to reuse, or NULL to allocate a new one. |