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

Name

Description

s

Existing ASN1_TIME to reuse, or NULL to allocate.

t

POSIX time to store.

Created with MrDocs