summaryrefslogtreecommitdiffstats
path: root/net/base/single_request_cert_verifier.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 03:04:32 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 03:04:32 +0000
commit66d9b6e3a23a94991e5583029d1f7e20d870433a (patch)
treec86853bcbf0247be7c6b8e0c58a88ebb68105001 /net/base/single_request_cert_verifier.cc
parent576e90a9b70a20f4eb09e4e44a078a26c5214548 (diff)
downloadchromium_src-66d9b6e3a23a94991e5583029d1f7e20d870433a.zip
chromium_src-66d9b6e3a23a94991e5583029d1f7e20d870433a.tar.gz
chromium_src-66d9b6e3a23a94991e5583029d1f7e20d870433a.tar.bz2
Introduce a CertVerifierProc to handle system cert validation.
In preparation for moving certificate path building and verification out of X509Certificate, introduce a CertVerifierProc that can be used by the MultiThreadedCertVerifier to verify certificates using the underlying system store. Unit tests previously coded against X509Certificate are now coded against the CertVerifierProc, as future CLs will shift verification into this interface. This was originally reviewed as http://codereview.chromium.org/9584041/ and http://codereview.chromium.org/9553014/ , and has been combined in order to preserve SVN history. BUG=114343 TEST=net_unittests R=wtc Review URL: https://chromiumcodereview.appspot.com/9812035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128150 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/single_request_cert_verifier.cc')
-rw-r--r--net/base/single_request_cert_verifier.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/base/single_request_cert_verifier.cc b/net/base/single_request_cert_verifier.cc
index 3370600..1777945 100644
--- a/net/base/single_request_cert_verifier.cc
+++ b/net/base/single_request_cert_verifier.cc
@@ -35,10 +35,6 @@ int SingleRequestCertVerifier::Verify(X509Certificate* cert,
// Should not be already in use.
DCHECK(!cur_request_ && cur_request_callback_.is_null());
- // Do a synchronous verification.
- if (callback.is_null())
- return cert->Verify(hostname, flags, crl_set, verify_result);
-
CertVerifier::RequestHandle request = NULL;
// We need to be notified of completion before |callback| is called, so that