summaryrefslogtreecommitdiffstats
path: root/net/quic/crypto/crypto_handshake.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/crypto/crypto_handshake.cc')
-rw-r--r--net/quic/crypto/crypto_handshake.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/quic/crypto/crypto_handshake.cc b/net/quic/crypto/crypto_handshake.cc
index 474dd3c..ad4366d 100644
--- a/net/quic/crypto/crypto_handshake.cc
+++ b/net/quic/crypto/crypto_handshake.cc
@@ -573,6 +573,13 @@ void QuicCryptoClientConfig::FillInchoateClientHello(
#endif
}
+ if (proof_verifier_.get() && !cached->proof_valid()) {
+ // If we are expecting a certificate chain, double the size of the client
+ // hello so that the response from the server can be larger - hopefully
+ // including the whole certificate chain.
+ out->set_minimum_size(kClientHelloMinimumSize * 2);
+ }
+
if (common_cert_sets) {
out->SetStringPiece(kCCS, common_cert_sets->GetCommonHashes());
}