Bug 1078108: Use a longer OCSP response validity period in tests, r=keeler
☠☠ backed out by 2ef257fcbcdd ☠ ☠
authorBrian Smith <brian@briansmith.org>
Sun, 05 Oct 2014 17:18:11 -0700
changeset 209739 b885a82dc02a088f2f478c20f568dbb22f72130e
parent 209738 b4d10d3e91311cffb68e935250404269deee2085
child 209740 b30e3a050567803de30476019332ec9bd6349023
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskeeler
bugs1078108
milestone35.0a1
Bug 1078108: Use a longer OCSP response validity period in tests, r=keeler
security/manager/ssl/tests/unit/tlsserver/lib/OCSPCommon.cpp
security/pkix/test/lib/pkixtestutil.cpp
--- a/security/manager/ssl/tests/unit/tlsserver/lib/OCSPCommon.cpp
+++ b/security/manager/ssl/tests/unit/tlsserver/lib/OCSPCommon.cpp
@@ -147,17 +147,17 @@ GetOCSPResponseForType(OCSPResponseType 
       break;
   }
   if (aORT == ORTSkipResponseBytes) {
     context.skipResponseBytes = true;
   }
   if (aORT == ORTExpired || aORT == ORTExpiredFreshCA ||
       aORT == ORTRevokedOld || aORT == ORTUnknownOld) {
     context.thisUpdate = oldNow;
-    context.nextUpdate = oldNow + 10;
+    context.nextUpdate = oldNow + Time::ONE_DAY_IN_SECONDS;
   }
   if (aORT == ORTLongValidityAlmostExpired) {
     context.thisUpdate = now - (320 * Time::ONE_DAY_IN_SECONDS);
   }
   if (aORT == ORTAncientAlmostExpired) {
     context.thisUpdate = now - (640 * Time::ONE_DAY_IN_SECONDS);
   }
   if (aORT == ORTRevoked || aORT == ORTRevokedOld) {
--- a/security/pkix/test/lib/pkixtestutil.cpp
+++ b/security/pkix/test/lib/pkixtestutil.cpp
@@ -138,17 +138,17 @@ OCSPResponseContext::OCSPResponseContext
   , includeEmptyExtensions(false)
   , signatureAlgorithm(sha256WithRSAEncryption)
   , badSignature(false)
   , certs(nullptr)
 
   , certStatus(good)
   , revocationTime(0)
   , thisUpdate(time)
-  , nextUpdate(time + 10)
+  , nextUpdate(time + Time::ONE_DAY_IN_SECONDS)
   , includeNextUpdate(true)
 {
 }
 
 static ByteString ResponseBytes(OCSPResponseContext& context);
 static ByteString BasicOCSPResponse(OCSPResponseContext& context);
 static ByteString ResponseData(OCSPResponseContext& context);
 static ByteString ResponderID(OCSPResponseContext& context);