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

Name

Description

s

ASN1_TIME (UTCTime or GeneralizedTime) to convert.

tm

Destination calendar time in UTC; may be NULL to only validate s.

Created with MrDocs