Chromium Code Reviews| 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 |