Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: net/http/http_network_session.cc

Issue 6487012: Clear the SSL Client Auth cache when a new SSL Client Certificate is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_network_session.cc
===================================================================
--- net/http/http_network_session.cc (revision 75583)
+++ net/http/http_network_session.cc (working copy)
@@ -14,6 +14,7 @@
#include "net/http/http_response_body_drainer.h"
#include "net/http/url_security_manager.h"
#include "net/socket/client_socket_factory.h"
+#include "net/socket/ssl_client_socket.h"
#include "net/spdy/spdy_session_pool.h"
namespace net {
@@ -62,4 +63,15 @@
return spdy_session_pool_.SpdySessionPoolInfoToValue();
}
+void HttpNetworkSession::ResetSSLState() {
+ // Erase any mapping from host:port to client certificate.
+ ssl_client_auth_cache()->Clear();
+ // Clear any cached ssl sessions so that we do not resume with the old
+ // certificate.
+ SSLClientSocket::ClearSSLSessionCache();
+ // Close all connections to force a reconnection.
+ FlushSocketPools();
+ spdy_session_pool()->CloseAllSessions();
wtc 2011/02/23 00:38:38 Should we imitate NetworkChangeNotifier and add a
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698