Index: net/socket/ssl_client_socket.h |
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h |
index ba8142a62b4fd40f19cd9b2e751cf8c424640df0..5d4e49b9972f2c7fb66a2096247816cdc80f727f 100644 |
--- a/net/socket/ssl_client_socket.h |
+++ b/net/socket/ssl_client_socket.h |
@@ -16,6 +16,7 @@ |
#include "net/base/net_errors.h" |
#include "net/socket/ssl_socket.h" |
#include "net/socket/stream_socket.h" |
+#include "net/ssl/token_binding.h" |
namespace base { |
class FilePath; |
@@ -108,10 +109,12 @@ class NET_EXPORT SSLClientSocket : public SSLSocket { |
// channel ids are not supported. |
virtual ChannelIDService* GetChannelIDService() const = 0; |
- // Signs the EKM value for Token Binding with |*key| and puts it in |*out|. |
- // Returns a net error code. |
- virtual Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
- std::vector<uint8_t>* out) = 0; |
+ // Generates the signature used in Token Binding using key |*key| and for a |
+ // Token Binding of type |tb_type|, putting the signature in |*out|. Returns a |
+ // net error code. |
+ virtual Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
+ TokenBindingType tb_type, |
+ std::vector<uint8_t>* out) = 0; |
// This method is only for debugging crbug.com/548423 and will be removed when |
// that bug is closed. This returns the channel ID key that was used when |