summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 13:56:57 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-26 13:56:57 +0000
commit98f397e9a7720f1476e37b0966c9ad70ea4deebc (patch)
tree9e7374a3d50f0abc764343981c8b071850ff3c8d /net/http/http_cache.cc
parentabf23550d6399dc647c984f9135447f658bbaf35 (diff)
downloadchromium_src-98f397e9a7720f1476e37b0966c9ad70ea4deebc.zip
chromium_src-98f397e9a7720f1476e37b0966c9ad70ea4deebc.tar.gz
chromium_src-98f397e9a7720f1476e37b0966c9ad70ea4deebc.tar.bz2
net: always save certs and trigger verify in SSLHostInfo.
(This is still behind --enable-snap-start because the SSLHostInfo's don't get created without it.) Have ssl_client_socket_nss always save certificates to the SSLHostInfo and have the SSLHostInfo kick off a validation as soon as possible if it has the certificates. For now the validation just primes the OCSP cache and isn't tied into anything else. In future patches, the SSL socket will compare the actual certificates against the predicted certificates and avoid a second validation if they match. BUG=none TEST=none http://codereview.chromium.org/3968003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63887 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r--net/http/http_cache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index d4a869f..0372222 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -267,8 +267,9 @@ class HttpCache::SSLHostInfoFactoryAdaptor : public SSLHostInfoFactory {
: http_cache_(http_cache) {
}
- SSLHostInfo* GetForHost(const std::string& hostname) {
- return new DiskCacheBasedSSLHostInfo(hostname, http_cache_);
+ SSLHostInfo* GetForHost(const std::string& hostname,
+ const SSLConfig& ssl_config) {
+ return new DiskCacheBasedSSLHostInfo(hostname, ssl_config, http_cache_);
}
private: