ASN1_TIME_set

Set an ASN.1 Time to the given POSIX time (UTCTime or GeneralizedTime).

Synopsis

Declared in <openssl/asn1.h>

ASN1_TIME*
ASN1_TIME_set(
    ASN1_TIME* s,
    time_t t);

Return Value

The updated or newly allocated ASN1_TIME, or NULL on error.

Parameters

NameDescription
sExisting ASN1_TIME to reuse, or NULL to allocate.
tPOSIX time to store.