ASN1_TIME_to_generalizedtime

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

NameDescription
tSource time (UTCTime or GeneralizedTime).
outOptional 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.