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) { |