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

Unified Diff: net/socket/ssl_client_socket.h

Issue 1360633002: Implement Token Binding negotiation TLS extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-server-flags
Patch Set: Rip out TB key lookup from SSLClientSocketOpenSSL; fold TokenBindingExtension class into SSLClientS… Created 5 years, 3 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/ssl_client_socket.h
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index 1d38048d0c6bdcf7c6667675a492a9f9929a7616..53170827ec9a185ad6e826d1a880ecb1e9aad76e 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -158,11 +158,20 @@ class NET_EXPORT SSLClientSocket : public SSLSocket {
bool channel_id_enabled,
bool supports_ecc);
+ // Records histograms for token binding support during full handshakes.
+ static void RecordTokenBindingSupport(const SSLConfig& ssl_config,
+ ChannelIDService* channel_id_service,
+ bool negotiated_token_binding);
+
// Returns whether TLS channel ID is enabled.
static bool IsChannelIDEnabled(
const SSLConfig& ssl_config,
ChannelIDService* channel_id_service);
+ // Returns whether Token Binding is enabled.
+ static bool IsTokenBindingEnabled(const SSLConfig& ssl_config,
+ ChannelIDService* channel_id_service);
+
// Determine if there is at least one enabled cipher suite that satisfies
// Section 9.2 of the HTTP/2 specification. Note that the server might still
// pick an inadequate cipher suite.

Powered by Google App Engine
This is Rietveld 408576698