summaryrefslogtreecommitdiffstats
path: root/net/socket_stream
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 22:04:24 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 22:04:24 +0000
commit4dc832eb7a378a2834423be90ba269c66e54fd0c (patch)
tree6638d0d237f1ae3fbdc21d18adf29870f94e7664 /net/socket_stream
parentdada9ebc9be44916789b2275400f426a06e959d2 (diff)
downloadchromium_src-4dc832eb7a378a2834423be90ba269c66e54fd0c.zip
chromium_src-4dc832eb7a378a2834423be90ba269c66e54fd0c.tar.gz
chromium_src-4dc832eb7a378a2834423be90ba269c66e54fd0c.tar.bz2
Skip cert verification if it is expected to be bad.
If server cert received is expected to be bad then don't perform the verification step. BUG=None TEST=net_unittests --gtest_filter=SSL* Review URL: http://codereview.chromium.org/6898033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream')
-rw-r--r--net/socket_stream/socket_stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc
index f1f05b0..cd49822 100644
--- a/net/socket_stream/socket_stream.cc
+++ b/net/socket_stream/socket_stream.cc
@@ -832,7 +832,7 @@ int SocketStream::DoSSLConnectComplete(int result) {
reinterpret_cast<SSLClientSocket*>(socket_.get());
SSLInfo ssl_info;
ssl_socket->GetSSLInfo(&ssl_info);
- if (ssl_config_.IsAllowedBadCert(ssl_info.cert)) {
+ if (ssl_config_.IsAllowedBadCert(ssl_info.cert, NULL)) {
// If we already have the certificate in the set of allowed bad
// certificates, we did try it and failed again, so we should not
// retry again: the connection should fail at last.