From 7e4e3a2f43704700f905b9bcbdf98278e23508fa Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 14 May 2019 10:15:48 +0200 Subject: introduce '--insecure' option ... to disable ssl certificate verification --- src/command_line_options.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/command_line_options.cpp') diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp index 466292a..fc4e0e1 100644 --- a/src/command_line_options.cpp +++ b/src/command_line_options.cpp @@ -17,6 +17,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { {"fullscreen", no_argument, nullptr, 'F'}, {"file", required_argument, nullptr, 'f'}, {"help", no_argument, nullptr, 'h'}, + {"insecure", no_argument, nullptr, 'i'}, {"locations", required_argument, nullptr, 'l'}, {"pool", required_argument, nullptr, 'P'}, {"pvs", no_argument, nullptr, 'p'}, @@ -41,7 +42,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { int c; // Again, please sort alphabetically in getopt_long call and switch statement - while ((c = getopt_long(argc, argv, "b:c:Dd:Ff:hl:P:pSs:t:T:u:vx:?", longOptions, nullptr)) != -1) { + while ((c = getopt_long(argc, argv, "b:c:Dd:Ff:hil:P:pSs:t:T:u:vx:?", longOptions, nullptr)) != -1) { switch (c) { case 'aqit': options.insert("autoquit", optarg); @@ -71,6 +72,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]) { case '?': options.insert("usage", "usage"); break; + case 'i': + options.insert("insecure", "nossl"); + break; case 'l': options.insert("locations", optarg); break; -- cgit v1.2.3-55-g7522