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

Unified Diff: net/tools/quic/quic_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_client_base.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_bin.cc
diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc
index a905aa0e93fdab375225d0f2fb9b043401c0f2eb..5b214a8607470c2132813701845ae8db9d93c100 100644
--- a/net/tools/quic/quic_client_bin.cc
+++ b/net/tools/quic/quic_client_bin.cc
@@ -208,23 +208,23 @@ int main(int argc, char *argv[]) {
// Build the client, and try to connect.
net::EpollServer epoll_server;
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::QuicClient client(net::IPEndPoint(ip_addr, port), server_id,
- versions, &epoll_server);
scoped_ptr<CertVerifier> cert_verifier;
scoped_ptr<TransportSecurityState> transport_security_state;
- 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()));
+ ProofVerifierChromium* proof_verifier = new ProofVerifierChromium(
+ cert_verifier.get(), nullptr, transport_security_state.get());
+ net::tools::QuicClient client(net::IPEndPoint(ip_addr, FLAGS_port), server_id,
+ versions, &epoll_server, proof_verifier);
+ client.set_initial_max_packet_length(
+ FLAGS_initial_mtu != 0 ? FLAGS_initial_mtu : net::kDefaultMaxPacketSize);
if (!client.Initialize()) {
cerr << "Failed to initialize client." << endl;
return 1;
« no previous file with comments | « net/tools/quic/quic_client_base.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698