Mercurial > hg > openjdk > bsd-port > jdk
changeset 8326:47954a92adb0 jdk7u85-b01
8133991: Fix mistake in 8075374 backport
Reviewed-by: andrew
author | omajid |
---|---|
date | Sat, 11 Jul 2015 16:19:35 +0100 |
parents | 1cb18f1a402c |
children | 5c6bd5d2d602 |
files | src/share/classes/sun/security/provider/certpath/OCSPResponse.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/OCSPResponse.java Thu Jul 09 11:44:04 2015 +0100 +++ b/src/share/classes/sun/security/provider/certpath/OCSPResponse.java Sat Jul 11 16:19:35 2015 +0100 @@ -711,16 +711,15 @@ } DEBUG.println("OCSP response validity interval is from " + thisUpdate + until); + DEBUG.println("Checking validity of OCSP response on: " + + new Date(now)); } - // Check that the test date is within the validity interval - if ((thisUpdate != null && nowPlusSkew.before(thisUpdate)) || - (nextUpdate != null && nowMinusSkew.after(nextUpdate))) { // Check that the test date is within the validity interval: // [ thisUpdate - MAX_CLOCK_SKEW, // MAX(thisUpdate, nextUpdate) + MAX_CLOCK_SKEW ] if (nowPlusSkew.before(thisUpdate) || nowMinusSkew.after( - nextUpdate != null ? nextUpdate : thisUpdate)) + nextUpdate != null ? nextUpdate : thisUpdate)) { if (DEBUG != null) { DEBUG.println("Response is unreliable: its validity " +