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

Unified Diff: net/socket/ssl_server_socket.h

Issue 679473002: Allow two SSL Server Socket parameters to be tuned by the caller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_server_socket.h
diff --git a/net/socket/ssl_server_socket.h b/net/socket/ssl_server_socket.h
index 88f7f94143956764cb67b32dc2e7667136b38b9f..497f1e0ecf45def070bf40fa0d5c6033b1ccdce0 100644
--- a/net/socket/ssl_server_socket.h
+++ b/net/socket/ssl_server_socket.h
@@ -32,6 +32,16 @@ class SSLServerSocket : public SSLSocket {
virtual int Handshake(const CompletionCallback& callback) = 0;
};
+// Sets parameters used by SSL Server Sockets. In order for these parameters
+// to take effect, this must be called before the first call to
+// EnableSSLServerSockets. Otherwise, the default parameters below will be used.
+//
+// max_session_id_cache_entries: default: 1024
+// ssl_session_id_cache_timeout (seconds): default: 5
+NET_EXPORT void SetSSLServerSessionCacheParameters(
+ int max_session_id_cache_entries,
+ int ssl_session_id_cache_timeout);
+
// Configures the underlying SSL library for the use of SSL server sockets.
//
// Due to the requirements of the underlying libraries, this should be called
« no previous file with comments | « no previous file | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698