changeset 6516:6cd79e876c2c

8020940: Valid OCSP responses are rejected for backdated enquiries Reviewed-by: mullan, valeriep
author vinnie
date Tue, 23 Jul 2013 00:46:10 +0100
parents 0931b4a280b1
children 51cd5710d96e
files src/share/classes/sun/security/provider/certpath/OCSPResponse.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/OCSPResponse.java	Thu Jul 18 11:19:22 2013 -0700
+++ b/src/share/classes/sun/security/provider/certpath/OCSPResponse.java	Tue Jul 23 00:46:10 2013 +0100
@@ -701,8 +701,7 @@
                 singleExtensions = Collections.emptyMap();
             }
 
-            long now = (dateCheckedAgainst == null) ?
-                System.currentTimeMillis() : dateCheckedAgainst.getTime();
+            long now = System.currentTimeMillis();
             Date nowPlusSkew = new Date(now + MAX_CLOCK_SKEW);
             Date nowMinusSkew = new Date(now - MAX_CLOCK_SKEW);
             if (DEBUG != null) {