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

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

Issue 1397983007: relnote: remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rch_insecure_quic
Patch Set: Compile fix 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_server.cc ('k') | net/tools/quic/quic_server_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_server_bin.cc
diff --git a/net/tools/quic/quic_server_bin.cc b/net/tools/quic/quic_server_bin.cc
index e5e212e00ca6a431a4e418491ed39ffcd53e4f61..0102a814a1144f86ee89d504d1cf5fdeeda7cfed 100644
--- a/net/tools/quic/quic_server_bin.cc
+++ b/net/tools/quic/quic_server_bin.cc
@@ -71,7 +71,10 @@ int main(int argc, char *argv[]) {
CHECK(net::ParseIPLiteralToNumber("::", &ip));
net::QuicConfig config;
- net::tools::QuicServer server(config, net::QuicSupportedVersions());
+ net::tools::QuicServer 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_server.cc ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698