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

Unified Diff: net/socket/ssl_client_socket.cc

Issue 1360633002: Implement Token Binding negotiation TLS extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-server-flags
Patch Set: rebase 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.cc
diff --git a/net/socket/ssl_client_socket.cc b/net/socket/ssl_client_socket.cc
index 8f88b31f0ce10052b4857167e4f4e7a60ba7d54e..64c38a5db362fbd1d96b40c27b9599776628a9be 100644
--- a/net/socket/ssl_client_socket.cc
+++ b/net/socket/ssl_client_socket.cc
@@ -172,6 +172,17 @@ bool SSLClientSocket::IsChannelIDEnabled(
}
// static
+bool SSLClientSocket::IsTokenBindingEnabled(
+ const SSLConfig& ssl_config,
+ ChannelIDService* channel_id_service) {
+ if (ssl_config.token_binding_params.size() != 1 ||
+ ssl_config.token_binding_params[0] != TB_PARAM_ECDSAP256_SHA256) {
+ return false;
+ }
+ return IsChannelIDEnabled(ssl_config, channel_id_service);
+}
+
+// static
bool SSLClientSocket::HasCipherAdequateForHTTP2(
const std::vector<uint16>& cipher_suites) {
for (uint16 cipher : cipher_suites) {

Powered by Google App Engine
This is Rietveld 408576698