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