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

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: '' 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
« net/socket/client_socket_factory.h ('K') | « net/socket/client_socket_factory.h ('k') | no next file » | 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)
@@ -93,6 +93,25 @@
NULL /* DnsCertProvenanceChecker */);
}
+void ClientSocketFactory::ClearSSLSessionCache() {
wtc 2011/02/24 01:00:14 This should be defined by the DefaultClientSocketF
Ryan Hamilton 2011/02/24 22:38:46 Done.
+#if defined(OS_WIN)
+ if (!g_use_system_ssl) {
+ SSLClientSocketNSS::ClearSessionCache();
+ }
wtc 2011/02/24 01:00:14 Nit: don't use curly braces {} around simple one-l
Ryan Hamilton 2011/02/24 22:38:46 Done! Sorry about that! GFE *requires* braces on
+#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();
+ return NULL;
wtc 2011/02/24 01:00:14 Bug: remove "return NULL;" because this function r
Ryan Hamilton 2011/02/24 22:38:46 Done.
+#endif
+}
+
// static
ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() {
return g_default_client_socket_factory.Pointer();
« net/socket/client_socket_factory.h ('K') | « net/socket/client_socket_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698