From 3e8b853ec7cbe794108c250419ff01e56c656202 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 7 Jan 2016 23:45:15 -0500 Subject: Changes: * Added an --insecure option to disable host/peer verification in libcurl. This allows feh to load images on HTTPS hosts with self-signed certificates. For security, this is not the default. * Fixed an include in show_usage. --- src/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 804b485..75ca381 100644 --- a/src/options.c +++ b/src/options.c @@ -406,7 +406,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) {"keep-zoom-vp" , 0, 0, 237}, {"scroll-step" , 1, 0, 238}, {"xinerama-index", 1, 0, 239}, - + {"insecure" , 0, 0, 240}, {0, 0, 0, 0} }; int optch = 0, cmdx = 0; @@ -759,6 +759,8 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) case 239: opt.xinerama_index = atoi(optarg); break; + case 240: + opt.insecure_ssl = 1; default: break; } @@ -863,7 +865,7 @@ static void show_usage(void) { fputs( #ifdef INCLUDE_HELP -#include "help.inc" +#include "help.raw" #else "See 'man " PACKAGE "'\n" #endif -- cgit v1.2.3