Revert "changed polarity on ocsp thisDate check to allow very timely responses"

This reverts commit afbc34f0e0.
pull/1/head
John Safranek 2012-12-26 21:41:12 -08:00
parent 6913a46331
commit baf9bef8a3
1 changed files with 1 additions and 2 deletions

View File

@ -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