ASN1_INTEGER_get_int64

Convert an ASN.1 INTEGER to a host int64_t.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_INTEGER_get_int64(
    int64_t* pr,
    ASN1_INTEGER const* a);

Return Value

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

Parameters

NameDescription
prReceives the signed value on success.
aINTEGER to convert; must fit in int64_t.