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

Unified Diff: net/tools/quic/quic_simple_client_bin.cc

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 2 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/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_client_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client_bin.cc
diff --git a/net/tools/quic/quic_simple_client_bin.cc b/net/tools/quic/quic_simple_client_bin.cc
index b2b1246c81b60cdbf9c3feb9eb65486ba239baf2..0728d332df2939e11a533f59ccd76e1eda7b2084 100644
--- a/net/tools/quic/quic_simple_client_bin.cc
+++ b/net/tools/quic/quic_simple_client_bin.cc
@@ -210,23 +210,23 @@ int main(int argc, char *argv[]) {
// Build the client, and try to connect.
net::QuicServerId server_id(url.host(), url.EffectiveIntPort(),
- /*is_https=*/true, net::PRIVACY_MODE_DISABLED);
+ net::PRIVACY_MODE_DISABLED);
net::QuicVersionVector versions = net::QuicSupportedVersions();
if (FLAGS_quic_version != -1) {
versions.clear();
versions.push_back(static_cast<net::QuicVersion>(FLAGS_quic_version));
}
- net::tools::QuicSimpleClient client(net::IPEndPoint(ip_addr, port), server_id,
- versions);
scoped_ptr<CertVerifier> cert_verifier;
scoped_ptr<TransportSecurityState> transport_security_state;
+ ProofVerifierChromium* proof_verifier = new ProofVerifierChromium(
+ cert_verifier.get(), nullptr, transport_security_state.get());
+ net::tools::QuicSimpleClient client(net::IPEndPoint(ip_addr, port), server_id,
+ versions, proof_verifier);
client.set_initial_max_packet_length(
FLAGS_initial_mtu != 0 ? FLAGS_initial_mtu : net::kDefaultMaxPacketSize);
// For secure QUIC we need to verify the cert chain.
cert_verifier = CertVerifier::CreateDefault();
transport_security_state.reset(new TransportSecurityState);
- client.SetProofVerifier(new ProofVerifierChromium(
- cert_verifier.get(), nullptr, transport_security_state.get()));
if (!client.Initialize()) {
cerr << "Failed to initialize client." << endl;
return 1;
« no previous file with comments | « net/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_client_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698