BN_to_ASN1_ENUMERATED

Convert a BIGNUM to an ASN.1 ENUMERATED value.

Synopsis

Declared in <openssl/asn1.h>

ASN1_ENUMERATED*
BN_to_ASN1_ENUMERATED(
    BIGNUM const* bn,
    ASN1_ENUMERATED* ai);

Return Value

Pointer to the ENUMERATED result (possibly newly allocated), or NULL on error.

Parameters

NameDescription
bnInteger to convert.
aiDestination ENUMERATED to reuse, or NULL to allocate a new one.