[#ASN1_TIME_set_string]
= ASN1&lowbar;TIME&lowbar;set&lowbar;string
:mrdocs:

Set an ASN&period;1 time from an ASN&period;1 time string (UTCTime or GeneralizedTime form)&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;TIME&lowbar;set&lowbar;string(
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* s,
    char const* str);
----

== Return Value

1 on success, or 0 if the string is not a valid ASN&period;1 time&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Destination time, or NULL to only validate `str&period;`
| *str*
| NUL&hyphen;terminated time string such as YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
