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

Unified Diff: net/tools/quic/quic_simple_server_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_server.cc ('k') | net/tools/quic/quic_simple_server_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_server_bin.cc
diff --git a/net/tools/quic/quic_simple_server_bin.cc b/net/tools/quic/quic_simple_server_bin.cc
index b1f6a6ab1bb797b6c06d02cca59d02c3d3c9d884..ef4355337c725be8008e2e083e020ff8e15536d3 100644
--- a/net/tools/quic/quic_simple_server_bin.cc
+++ b/net/tools/quic/quic_simple_server_bin.cc
@@ -71,7 +71,10 @@ int main(int argc, char *argv[]) {
CHECK(net::ParseIPLiteralToNumber("::", &ip));
net::QuicConfig config;
- net::tools::QuicSimpleServer server(config, net::QuicSupportedVersions());
+ net::tools::QuicSimpleServer server(
+ CreateProofSource(line->GetSwitchValuePath("certificate_file"),
+ line->GetSwitchValuePath("key_file")),
+ config, net::QuicSupportedVersions());
server.SetStrikeRegisterNoStartupPeriod();
if (!line->HasSwitch("certificate_file")) {
LOG(ERROR) << "missing --certificate_file";
@@ -81,9 +84,6 @@ int main(int argc, char *argv[]) {
LOG(ERROR) << "missing --key_file";
return 1;
}
- server.SetProofSource(
- CreateProofSource(line->GetSwitchValuePath("certificate_file"),
- line->GetSwitchValuePath("key_file")));
int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port));
if (rc < 0) {
« no previous file with comments | « net/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698