ASN1_TIME_set_string_X509

Set an ASN1_TIME from a string, preferring the X.509 UTCTime/GeneralizedTime rules.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_set_string_X509(
    ASN1_TIME* s,
    char const* str);

Return Value

1 on success, or 0 if str is not a valid X.509 time encoding.

Parameters

NameDescription
sDestination time object to update.
strNUL-terminated time string in ASN.1 UTCTime or GeneralizedTime form.