summaryrefslogtreecommitdiffstats
path: root/net/ocsp
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 20:19:47 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 20:19:47 +0000
commit131d13b8530e28cea6ae0fd5fa7e41723667ce04 (patch)
tree57cb7f1f6d07b581b1979b96b6ab9f55d51f0f22 /net/ocsp
parenteaf60d8ba229a9dc7344cc305ef23607ce4b52be (diff)
downloadchromium_src-131d13b8530e28cea6ae0fd5fa7e41723667ce04.zip
chromium_src-131d13b8530e28cea6ae0fd5fa7e41723667ce04.tar.gz
chromium_src-131d13b8530e28cea6ae0fd5fa7e41723667ce04.tar.bz2
Revert "Revert "net: add OCSP tests.""
(First landed in r127486, reverted in r127493 because it broke on Windows XP.) I was getting increasingly unhappy altering EV and revocation checking semantics without any tests. We historically haven't had tests because online revocation checking is inherently flaky so I amended testserver with the minimum code to be able to sign and vend OCSP responses. These tests do not test the final EV/CRLSet/revocation checking semantics. They are intended to be altered in future CLs. BUG=none TEST=net_unittests https://chromiumcodereview.appspot.com/9663017/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp')
-rw-r--r--net/ocsp/nss_ocsp.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc
index 07cd019..80f9db0 100644
--- a/net/ocsp/nss_ocsp.cc
+++ b/net/ocsp/nss_ocsp.cc
@@ -49,6 +49,8 @@ class OCSPIOLoop {
void StartUsing() {
base::AutoLock autolock(lock_);
used_ = true;
+ io_loop_ = MessageLoopForIO::current();
+ DCHECK(io_loop_);
}
// Called on IO loop.
@@ -456,8 +458,7 @@ class OCSPServerSession {
OCSPIOLoop::OCSPIOLoop()
: shutdown_(false),
used_(false),
- io_loop_(MessageLoopForIO::current()) {
- DCHECK(io_loop_);
+ io_loop_(NULL) {
}
OCSPIOLoop::~OCSPIOLoop() {
@@ -512,13 +513,6 @@ void OCSPIOLoop::AddRequest(OCSPRequestSession* request) {
}
void OCSPIOLoop::RemoveRequest(OCSPRequestSession* request) {
- {
- // Ignore if we've already shutdown.
- base::AutoLock auto_lock(lock_);
- if (shutdown_)
- return;
- }
-
DCHECK(ContainsKey(requests_, request));
requests_.erase(request);
}