Set an ASN1_GENERALIZEDTIME to the calendar time t (allocating when s is NULL).
Declared in <openssl/asn1.h>
ASN1_GENERALIZEDTIME*
ASN1_GENERALIZEDTIME_set(
ASN1_GENERALIZEDTIME* s,
time_t t);
The GeneralizedTime on success (possibly newly allocated), or NULL on error.
| Name | Description |
|---|---|
| s | Existing GeneralizedTime to reuse, or NULL to allocate a new one. |
| t | POSIX time (seconds since the Epoch). |