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

Unified Diff: net/socket/client_socket_factory.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/socket/client_socket_factory.cc
===================================================================
--- net/socket/client_socket_factory.cc (revision 74291)
+++ net/socket/client_socket_factory.cc (working copy)
@@ -104,4 +104,29 @@
g_ssl_factory = factory;
}
+void ClientSocketFactory::DefaultClearSSLSessionCache() {
+#if defined(OS_WIN)
+ // no-op
+#elif defined(USE_OPENSSL)
+ // no-op
+#elif defined(USE_NSS)
+ return SSLClientSocketNSS::ClearSessionCache();
+#elif defined(OS_MACOSX)
+ return SSLClientSocketNSS::ClearSessionCache();
wtc 2011/02/15 20:50:40 For OS_WIN and OS_MACOSX, this function should cal
Ryan Hamilton 2011/02/16 17:44:40 You're right, of course. However, I notice a very
wtc 2011/02/23 01:17:34 Yes. The USE_OPENSSL build option is intended for
+#else
+ NOTIMPLEMENTED();
+#endif
+}
+
+void (*g_clear_ssl_session_cache)() =
+ ClientSocketFactory::DefaultClearSSLSessionCache;
+
+void ClientSocketFactory::ClearSSLSessionCache() {
+ g_clear_ssl_session_cache();
+}
+
+void ClientSocketFactory::SetClearSSLSessionCache(void (*clear)()) {
+ g_clear_ssl_session_cache = clear;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698