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

Name

Description

s

ASN1_TIME (UTCTime or GeneralizedTime) to compare.

t

POSIX time to compare against.

Created with MrDocs