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

Unified Diff: net/spdy/spdy_session.cc

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/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 61f9e5fc0b5bd93d280b93a1c90562132ab6990b..16941e0803bda2d234636293e31f1f45fee225e4 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -48,6 +48,7 @@
#include "net/ssl/channel_id_service.h"
#include "net/ssl/ssl_cipher_suite_names.h"
#include "net/ssl/ssl_connection_status_flags.h"
+#include "net/ssl/token_binding.h"
davidben 2016/01/22 00:19:21 Not necessary?
nharper 2016/01/22 19:36:52 Removed.
namespace net {
@@ -2047,6 +2048,17 @@ bool SpdySession::GetSSLInfo(SSLInfo* ssl_info,
return connection_->socket()->GetSSLInfo(ssl_info);
}
+int SpdySession::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
+ std::vector<uint8_t>* out) {
+ if (!is_secure_) {
+ NOTREACHED();
+ return ERR_FAILED;
+ }
+ SSLClientSocket* ssl_socket =
+ static_cast<SSLClientSocket*>(connection_->socket());
+ return ssl_socket->GetSignedEKMForTokenBinding(key, out);
+}
+
void SpdySession::OnError(SpdyFramer::SpdyError error_code) {
CHECK(in_io_loop_);

Powered by Google App Engine
This is Rietveld 408576698