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

Unified Diff: net/http/http_stream_parser.cc

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() Created 4 years, 3 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
« no previous file with comments | « net/http/http_stream_parser.h ('k') | net/http/proxy_connect_redirect_http_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_parser.cc
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index 766ebd3f34332cb5fc408f957120640950667ec4..bf5a41aa6de84dfc67b6606f942dac653b26507d 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -1165,15 +1165,16 @@ void HttpStreamParser::GetSSLCertRequestInfo(
}
}
-Error HttpStreamParser::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
- std::vector<uint8_t>* out) {
+Error HttpStreamParser::GetTokenBindingSignature(crypto::ECPrivateKey* key,
+ TokenBindingType tb_type,
+ 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);
+ return ssl_socket->GetTokenBindingSignature(key, tb_type, out);
}
int HttpStreamParser::EncodeChunk(const base::StringPiece& payload,
« no previous file with comments | « net/http/http_stream_parser.h ('k') | net/http/proxy_connect_redirect_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698