MEDIUM: ssl: add 300s supported time skew on OCSP response update.
OCSP_MAX_RESPONSE_TIME_SKEW can be set to a different value at compilation (default is 300 seconds).
This commit is contained in:
parent
af4ef741e9
commit
c8b27b6c68
|
@ -235,4 +235,7 @@
|
|||
#define OCSP_MAX_CERTID_ASN1_LENGTH 128
|
||||
#endif
|
||||
|
||||
#ifndef OCSP_MAX_RESPONSE_TIME_SKEW
|
||||
#define OCSP_MAX_RESPONSE_TIME_SKEW 300
|
||||
#endif
|
||||
#endif /* _COMMON_DEFAULTS_H */
|
||||
|
|
|
@ -179,7 +179,7 @@ static int ssl_sock_load_ocsp_response(struct chunk *ocsp_response, struct certi
|
|||
goto out;
|
||||
}
|
||||
|
||||
rc = OCSP_check_validity(thisupd, nextupd, 0, -1);
|
||||
rc = OCSP_check_validity(thisupd, nextupd, OCSP_MAX_RESPONSE_TIME_SKEW, -1);
|
||||
if (!rc) {
|
||||
memprintf(err, "OCSP single response: no longer valid.");
|
||||
goto out;
|
||||
|
|
Loading…
Reference in New Issue