Index: net/http/http_stream.h |
diff --git a/net/http/http_stream.h b/net/http/http_stream.h |
index 8aeec0650ab20347e893c23fa757e9b8c5540b4a..f5787e737f56349fbd638a88c6e013b9ce6af8df 100644 |
--- a/net/http/http_stream.h |
+++ b/net/http/http_stream.h |
@@ -23,6 +23,7 @@ |
#include "net/base/net_export.h" |
#include "net/base/request_priority.h" |
#include "net/base/upload_progress.h" |
+#include "net/ssl/token_binding.h" |
namespace crypto { |
class ECPrivateKey; |
@@ -158,10 +159,12 @@ class NET_EXPORT_PRIVATE HttpStream { |
// and does not modify |endpoint| if it is unavailable. |
virtual bool GetRemoteEndpoint(IPEndPoint* endpoint) = 0; |
- // Signs the EKM value for Token Binding from the TLS layer using |*key| and |
- // puts the result in |*out|. Returns OK or ERR_FAILED. |
- virtual Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
- std::vector<uint8_t>* out) = 0; |
+ // Generates the signature used in Token Binding using |*key| and for a Token |
+ // Binding of type |tb_type|, putting the signature in |*out|. Returns OK or |
+ // ERR_FAILED. |
+ virtual Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
+ TokenBindingType tb_type, |
+ std::vector<uint8_t>* out) = 0; |
// In the case of an HTTP error or redirect, flush the response body (usually |
// a simple error or "this page has moved") so that we can re-use the |