| Index: net/quic/crypto/crypto_server_config.cc
|
| ===================================================================
|
| --- net/quic/crypto/crypto_server_config.cc (revision 216255)
|
| +++ net/quic/crypto/crypto_server_config.cc (working copy)
|
| @@ -304,6 +304,7 @@
|
|
|
| QuicErrorCode QuicCryptoServerConfig::ProcessClientHello(
|
| const CryptoHandshakeMessage& client_hello,
|
| + QuicVersion version,
|
| QuicGuid guid,
|
| const IPEndPoint& client_ip,
|
| const QuicClock* clock,
|
| @@ -358,7 +359,8 @@
|
| !info.client_nonce_well_formed ||
|
| !info.unique ||
|
| !requested_config.get()) {
|
| - BuildRejection(primary_config, client_hello, info, rand, out);
|
| + BuildRejection(version, primary_config.get(), client_hello, info, rand,
|
| + out);
|
| return QUIC_NO_ERROR;
|
| }
|
|
|
| @@ -662,6 +664,7 @@
|
| }
|
|
|
| void QuicCryptoServerConfig::BuildRejection(
|
| + QuicVersion version,
|
| const scoped_refptr<Config>& config,
|
| const CryptoHandshakeMessage& client_hello,
|
| const ClientHelloInfo& info,
|
| @@ -705,8 +708,9 @@
|
|
|
| const vector<string>* certs;
|
| string signature;
|
| - if (!proof_source_->GetProof(info.sni.as_string(), config->serialized,
|
| - x509_ecdsa_supported, &certs, &signature)) {
|
| + if (!proof_source_->GetProof(version, info.sni.as_string(),
|
| + config->serialized, x509_ecdsa_supported,
|
| + &certs, &signature)) {
|
| return;
|
| }
|
|
|
|
|