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

Unified Diff: net/socket/client_socket_factory.cc

Issue 6580006: Implement ClientSocketFactory::ClearSSLSessionCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressed wtc's final comments 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
« no previous file with comments | « net/socket/client_socket_factory.h ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_factory.cc
===================================================================
--- net/socket/client_socket_factory.cc (revision 75806)
+++ net/socket/client_socket_factory.cc (working copy)
@@ -72,6 +72,25 @@
return NULL;
#endif
}
+
+ // TODO(rch): This is only implemented for the NSS SSL library, which is the
+ /// default for Windows, Mac and Linux, but we should implement it everywhere.
+ void ClearSSLSessionCache() {
+#if defined(OS_WIN)
+ if (!g_use_system_ssl)
+ SSLClientSocketNSS::ClearSessionCache();
+#elif defined(USE_OPENSSL)
+ // no-op
+#elif defined(USE_NSS)
+ SSLClientSocketNSS::ClearSessionCache();
+#elif defined(OS_MACOSX)
+ if (!g_use_system_ssl)
+ SSLClientSocketNSS::ClearSessionCache();
+#else
+ NOTIMPLEMENTED();
+#endif
+ }
+
};
static base::LazyInstance<DefaultClientSocketFactory>
« no previous file with comments | « net/socket/client_socket_factory.h ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698