[#OCSP_check_validity] = OCSP_check_validity :mrdocs: Check that OCSP thisUpdate/nextUpdate times are acceptable relative to now. == Synopsis Declared in `<openssl/ocsp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OCSP_check_validity( xref:ASN1_GENERALIZEDTIME.adoc[ASN1_GENERALIZEDTIME]* thisupd, xref:ASN1_GENERALIZEDTIME.adoc[ASN1_GENERALIZEDTIME]* nextupd, long sec, long maxsec); ---- == Return Value 1 if the times are valid, or 0 otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *thisupd* | thisUpdate time from a SingleResponse (required). | *nextupd* | Optional nextUpdate time, or NULL if absent. | *sec* | Allowed skew in seconds comparing thisUpdate to the current time. | *maxsec* | Maximum age of thisUpdate in seconds, or ‐1 for no maximum. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#