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

Unified Diff: net/socket/ssl_client_socket.h

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: fix build issues Created 4 years, 11 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.h
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index 3a6aa94258f30a72efe54ec5a3ee3183e4022a6d..0ac6e26f95214aea2323bcf0fa0ff87b514795b9 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/gtest_prod_util.h"
+#include "crypto/ec_private_key.h"
davidben 2016/01/22 00:19:21 Can be forward-declared.
nharper 2016/01/22 19:36:52 Done.
#include "net/base/completion_callback.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
@@ -144,6 +145,11 @@ 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 of ERR_FAILED or OK.
davidben 2016/01/22 00:19:21 Nit: Also returns ERR_NOT_IMPLEMENTED, strictly sp
nharper 2016/01/22 19:36:52 Done. I also changed the same method in HttpStream
+ virtual int GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
+ std::vector<uint8_t>* out) = 0;
+
// Returns the state of the handshake when it failed, or |SSL_FAILURE_NONE| if
// the handshake succeeded. This is used to classify causes of the TLS version
// fallback.

Powered by Google App Engine
This is Rietveld 408576698