[#OSSL_CRMF_MSG_set0_validity]
= OSSL&lowbar;CRMF&lowbar;MSG&lowbar;set0&lowbar;validity
:mrdocs:

Set optional validity times in the certTemplate of a CRMF CertReqMsg&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CRMF&lowbar;MSG&lowbar;set0&lowbar;validity(
    xref:OSSL_CRMF_MSG.adoc[OSSL&lowbar;CRMF&lowbar;MSG]* crm,
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* notBefore,
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* notAfter);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *crm*
| CertReqMsg to update&period;
| *notBefore*
| Optional notBefore time&semi; ownership transfers when non&hyphen;NULL&period;
| *notAfter*
| Optional notAfter time&semi; ownership transfers when non&hyphen;NULL&period;
|===


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