ASN1_ENUMERATED_get

Return the value of an ASN.1 ENUMERATED as a long (legacy; prefer ASN1_ENUMERATED_get_int64).

Synopsis

Declared in <openssl/asn1.h>

long
ASN1_ENUMERATED_get(ASN1_ENUMERATED const* a);

Return Value

Converted long value, or 0 if a is NULL or the value does not fit in a long.

Parameters

NameDescription
aEnumerated value to read; NULL is treated as 0.