ASN1_TIME_compare

Compare two ASN.1 time values chronologically.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_compare(
    ASN1_TIME const* a,
    ASN1_TIME const* b);

Return Value

1 if a is later than b, -1 if a is earlier, 0 if equal, or -2 if either time is invalid.

Parameters

NameDescription
aFirst time.
bSecond time.