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