ASN1_INTEGER_get_uint64

Convert an ASN.1 INTEGER to a host uint64_t (must be non-negative and in range).

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_INTEGER_get_uint64(
    uint64_t* pr,
    ASN1_INTEGER const* a);

Return Value

1 on success, or 0 if a is NULL, negative, or out of uint64_t range.

Parameters

NameDescription
prReceives the unsigned value on success.
aINTEGER to convert.