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

Name

Description

s

Destination time object to update.

str

NUL‐terminated time string in ASN.1 UTCTime or GeneralizedTime form.

Created with MrDocs