ASN1_TIME_cmp_time_t

Compare an ASN.1 time value with a calendar time_t.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_cmp_time_t(
    ASN1_TIME const* s,
    time_t t);

Return Value

-1 if s is before t, 0 if equal, 1 if after, or -2 on error.

Parameters

NameDescription
sASN1_TIME (UTCTime or GeneralizedTime) to compare.
tPOSIX time to compare against.