diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 17:20:18 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 17:20:18 +0000 |
commit | c940d37d3a861790ab8aece6ba5df75a65d60427 (patch) | |
tree | 03f3dea92ecf9f27e16c9450b40c3e850bd2352e /net/spdy/spdy_session_pool.h | |
parent | 7ec9b3d8a08c1127d82b605f5159d0a4c1a3e02b (diff) | |
download | chromium_src-c940d37d3a861790ab8aece6ba5df75a65d60427.zip chromium_src-c940d37d3a861790ab8aece6ba5df75a65d60427.tar.gz chromium_src-c940d37d3a861790ab8aece6ba5df75a65d60427.tar.bz2 |
Fix a problem that cert trust change needs a chrome restart to be effective.
This seems to be caused by CertVerifier's verification result cache.
- Added a new OnCertTrustChanged to CertDatabase::Observer;
- For NSS cert database, SetCertTrust triggers OnCertTrustChanged;
- Clear CertVerifier's result cache when OnCertDatabaseChanged is fired;
BUG=chromium-os:7988
TEST=Verify #2 issue in chromium-os:7988 where cert trust change only takes
effect after chrome restart.
Review URL: http://codereview.chromium.org/6816035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.h')
-rw-r--r-- | net/spdy/spdy_session_pool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h index 7a08861..32531d5 100644 --- a/net/spdy/spdy_session_pool.h +++ b/net/spdy/spdy_session_pool.h @@ -115,7 +115,8 @@ class SpdySessionPool static void enable_ip_pooling(bool value) { g_enable_ip_pooling = value; } // CertDatabase::Observer methods: - virtual void OnUserCertAdded(X509Certificate* cert); + virtual void OnUserCertAdded(const X509Certificate* cert); + virtual void OnCertTrustChanged(const X509Certificate* cert); private: friend class SpdySessionPoolPeer; // For testing. |