Convert an ASN1_TIME to GeneralizedTime form.

Synopsis

Declared in <openssl/asn1.h>

ASN1_GENERALIZEDTIME*
ASN1_TIME_to_generalizedtime(
    ASN1_TIME const* t,
    ASN1_GENERALIZEDTIME** out);

Return Value

Pointer to the GeneralizedTime result, or NULL on error.

Parameters

Name

Description

t

Source time (UTCTime or GeneralizedTime).

out

Optional destination; if non‐NULL and *`out` is non‐NULL it is reused, otherwise a new value is allocated and returned via *`out` when out is non‐NULL.

Created with MrDocs