diff options
author | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-17 18:48:25 +0000 |
---|---|---|
committer | yfriedman@chromium.org <yfriedman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-17 18:48:25 +0000 |
commit | f3875bfd4e7e737e82efe2582b571e9b3c450be4 (patch) | |
tree | b57ca1f24d65591d4a833653d5323bc4fa6d4532 /net | |
parent | b73825f9e9f435ad5e95f8c2ff294a6be73e29ea (diff) | |
download | chromium_src-f3875bfd4e7e737e82efe2582b571e9b3c450be4.zip chromium_src-f3875bfd4e7e737e82efe2582b571e9b3c450be4.tar.gz chromium_src-f3875bfd4e7e737e82efe2582b571e9b3c450be4.tar.bz2 |
When clearing the session cache, also flush OpenSSLClientKeyStore.
Without this, we can end upcaching a stale PrivateKey.
BUG=341500
Review URL: https://codereview.chromium.org/169153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/socket/ssl_client_socket_openssl.cc | 1 | ||||
-rw-r--r-- | net/ssl/openssl_client_key_store.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc index 89303d5..b253dfe 100644 --- a/net/socket/ssl_client_socket_openssl.cc +++ b/net/socket/ssl_client_socket_openssl.cc @@ -333,6 +333,7 @@ void SSLClientSocket::ClearSessionCache() { SSLClientSocketOpenSSL::SSLContext* context = SSLClientSocketOpenSSL::SSLContext::GetInstance(); context->session_cache()->Flush(); + OpenSSLClientKeyStore::GetInstance()->Flush(); } SSLClientSocketOpenSSL::SSLClientSocketOpenSSL( diff --git a/net/ssl/openssl_client_key_store.h b/net/ssl/openssl_client_key_store.h index 6d90253..e2b57a3 100644 --- a/net/ssl/openssl_client_key_store.h +++ b/net/ssl/openssl_client_key_store.h @@ -62,7 +62,7 @@ class NET_EXPORT OpenSSLClientKeyStore { bool FetchClientCertPrivateKey(const X509Certificate* cert, ScopedEVP_PKEY* private_key); - // Flush all recorded keys. Used only during testing. + // Flush all recorded keys. void Flush(); protected: |