| Index: net/quic/crypto/quic_crypto_client_config.cc
|
| diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
|
| index b9b0bcd46fcfeec9fe1a7710e178eefde590c30e..eec1861e83068d4ec9da4e01a5aa357068d70520 100644
|
| --- a/net/quic/crypto/quic_crypto_client_config.cc
|
| +++ b/net/quic/crypto/quic_crypto_client_config.cc
|
| @@ -497,6 +497,26 @@ QuicErrorCode QuicCryptoClientConfig::FillClientHello(
|
| out->SetTaglist(kAEAD, out_params->aead, 0);
|
| out->SetTaglist(kKEXS, out_params->key_exchange, 0);
|
|
|
| + if (!tb_key_params.empty()) {
|
| + const QuicTag* their_tbkps;
|
| + size_t num_their_tbkps;
|
| + switch (scfg->GetTaglist(kTBKP, &their_tbkps, &num_their_tbkps)) {
|
| + case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
|
| + break;
|
| + case QUIC_NO_ERROR:
|
| + if (QuicUtils::FindMutualTag(tb_key_params, their_tbkps,
|
| + num_their_tbkps, QuicUtils::LOCAL_PRIORITY,
|
| + &out_params->token_binding_key_param,
|
| + nullptr)) {
|
| + out->SetTaglist(kTBKP, out_params->token_binding_key_param, 0);
|
| + }
|
| + break;
|
| + default:
|
| + *error_details = "Invalid TBKP";
|
| + return QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER;
|
| + }
|
| + }
|
| +
|
| StringPiece public_value;
|
| if (scfg->GetNthValue24(kPUBS, key_exchange_index, &public_value) !=
|
| QUIC_NO_ERROR) {
|
|
|