Check that OCSP thisUpdate/nextUpdate times are acceptable relative to now.
Declared in <openssl/ocsp.h>
int
OCSP_check_validity(
ASN1_GENERALIZEDTIME* thisupd,
ASN1_GENERALIZEDTIME* nextupd,
long sec,
long maxsec);
1 if the times are valid, or 0 otherwise.
| 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. |