Implement Token Binding negotiation TLS extension
BUG=467312
Review URL: https://codereview.chromium.org/1360633002
Cr-Commit-Position: refs/heads/master@{#358465}
diff --git a/net/socket/ssl_client_socket_openssl.h b/net/socket/ssl_client_socket_openssl.h
index dbceeaf..9acb728 100644
--- a/net/socket/ssl_client_socket_openssl.h
+++ b/net/socket/ssl_client_socket_openssl.h
@@ -210,6 +210,13 @@
void OnPrivateKeySignComplete(Error error,
const std::vector<uint8_t>& signature);
+ int TokenBindingAdd(const uint8_t** out,
+ size_t* out_len,
+ int* out_alert_value);
+ int TokenBindingParse(const uint8_t* contents,
+ size_t contents_len,
+ int* out_alert_value);
+
bool transport_send_busy_;
bool transport_recv_busy_;
@@ -281,6 +288,8 @@
// The service for retrieving Channel ID keys. May be NULL.
ChannelIDService* channel_id_service_;
+ bool tb_was_negotiated_;
+ TokenBindingParam tb_negotiated_param_;
// OpenSSL stuff
SSL* ssl_;