ASN1_TIME_to_tm

Convert an ASN.1 time value to a broken-down UTC struct tm.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_to_tm(
    ASN1_TIME const* s,
    tm* tm);

Return Value

1 on success, or 0 if s is invalid.

Parameters

NameDescription
sASN1_TIME (UTCTime or GeneralizedTime) to convert.
tmDestination calendar time in UTC; may be NULL to only validate s.