mirror of https://github.com/wolfSSL/wolfssl.git
Revert "changed polarity on ocsp thisDate check to allow very timely responses"
This reverts commit afbc34f0e0
.
pull/1/head
parent
6913a46331
commit
baf9bef8a3
|
@ -4240,8 +4240,7 @@ static int DecodeSingleResponse(byte* source,
|
|||
if (GetBasicDate(source, &idx, cs->thisDate,
|
||||
&cs->thisDateFormat, size) < 0)
|
||||
return ASN_PARSE_E;
|
||||
/* Check thisDate <= now, or treat thisDate > now as a failure */
|
||||
if (ValidateDate(cs->thisDate, cs->thisDateFormat, AFTER))
|
||||
if (!ValidateDate(cs->thisDate, cs->thisDateFormat, BEFORE))
|
||||
return ASN_BEFORE_DATE_E;
|
||||
|
||||
/* The following items are optional. Only check for them if there is more
|
||||
|
|
Loading…
Reference in New Issue