Index: net/http/http_stream_parser.cc |
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc |
index e115743ea59df7af8b6fb482a44ab47b042c068b..005388951f549e52bc40a2f69194029e45c88508 100644 |
--- a/net/http/http_stream_parser.cc |
+++ b/net/http/http_stream_parser.cc |
@@ -24,6 +24,7 @@ |
#include "net/http/http_util.h" |
#include "net/socket/client_socket_handle.h" |
#include "net/socket/ssl_client_socket.h" |
+#include "net/ssl/token_binding.h" |
namespace net { |
@@ -1100,6 +1101,17 @@ void HttpStreamParser::GetSSLCertRequestInfo( |
} |
} |
+int HttpStreamParser::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
+ std::vector<uint8_t>* out) { |
+ if (!request_->url.SchemeIsCryptographic() || !connection_->socket()) { |
+ NOTREACHED(); |
+ return ERR_FAILED; |
+ } |
+ SSLClientSocket* ssl_socket = |
+ static_cast<SSLClientSocket*>(connection_->socket()); |
+ return ssl_socket->GetSignedEKMForTokenBinding(key, out); |
+} |
+ |
int HttpStreamParser::EncodeChunk(const base::StringPiece& payload, |
char* output, |
size_t output_size) { |