summaryrefslogtreecommitdiff
path: root/net/http/http_network_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r--net/http/http_network_transaction.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 10b6e12..d17ef21 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1022,8 +1022,9 @@ int HttpNetworkTransaction::BuildRequestHeaders(
int HttpNetworkTransaction::BuildTokenBindingHeader(std::string* out) {
base::TimeTicks start = base::TimeTicks::Now();
std::vector<uint8_t> signed_ekm;
- int rv = stream_->GetSignedEKMForTokenBinding(
- provided_token_binding_key_.get(), &signed_ekm);
+ int rv = stream_->GetTokenBindingSignature(provided_token_binding_key_.get(),
+ TokenBindingType::PROVIDED,
+ &signed_ekm);
if (rv != OK)
return rv;
std::string provided_token_binding;
@@ -1039,8 +1040,9 @@ int HttpNetworkTransaction::BuildTokenBindingHeader(std::string* out) {
std::string referred_token_binding;
if (referred_token_binding_key_) {
std::vector<uint8_t> referred_signed_ekm;
- int rv = stream_->GetSignedEKMForTokenBinding(
- referred_token_binding_key_.get(), &referred_signed_ekm);
+ int rv = stream_->GetTokenBindingSignature(
+ referred_token_binding_key_.get(), TokenBindingType::REFERRED,
+ &referred_signed_ekm);
if (rv != OK)
return rv;
rv = BuildTokenBinding(TokenBindingType::REFERRED,
@@ -1054,8 +1056,7 @@ int HttpNetworkTransaction::BuildTokenBindingHeader(std::string* out) {
rv = BuildTokenBindingMessageFromTokenBindings(token_bindings, &header);
if (rv != OK)
return rv;
- base::Base64UrlEncode(header, base::Base64UrlEncodePolicy::INCLUDE_PADDING,
- out);
+ base::Base64UrlEncode(header, base::Base64UrlEncodePolicy::OMIT_PADDING, out);
base::TimeDelta header_creation_time = base::TimeTicks::Now() - start;
UMA_HISTOGRAM_CUSTOM_TIMES("Net.TokenBinding.HeaderCreationTime",
header_creation_time,