method

check_validity

Importance_1
v2_5_5 - Show latest stable - 0 notes - Class: SingleResponse
check_validity(p1 = v1, p2 = v2) public

Checks the validity of thisUpdate and nextUpdate fields of this SingleResponse. This checks the current time is within the range thisUpdate to nextUpdate.

It is possible that the OCSP request takes a few seconds or the time is not accurate. To avoid rejecting a valid response, this method allows the times to be within nsec seconds of the current time.

Some responders don’t set the nextUpdate field. This may cause a very old response to be considered valid. The maxsec parameter can be used to limit the age of responses.

Show source
Register or log in to add new notes.