[#ASN1_TIME_set_string_X509] = ASN1_TIME_set_string_X509 :mrdocs: Set an ASN1_TIME from a string, preferring the X.509 UTCTime/GeneralizedTime rules. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_TIME_set_string_X509( xref:ASN1_TIME.adoc[ASN1_TIME]* s, char const* str); ---- == Return Value 1 on success, or 0 if `str` is not a valid X.509 time encoding. == Parameters [cols="1,4"] |=== | Name| Description | *s* | Destination time object to update. | *str* | NUL‐terminated time string in ASN.1 UTCTime or GeneralizedTime form. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#