wget: ignore --no-check-certificate
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 10 Feb 2010 18:37:29 +0000 (19:37 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 10 Feb 2010 18:37:29 +0000 (19:37 +0100)
Used in a number of scripts, don't barf on it (we don't do ssl ATM).

function                                             old     new   delta
static.wget_longopts                                 122     145     +23
.rodata                                           131925  131947     +22
packed_usage                                       26860   26859      -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 45/-1)              Total: 44 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/usage.h
networking/wget.c

index c2ffb6d6edb9474d16c22fd9bd0196274ee55c02..643d35fadf4cf3b736fa81ad6465f44d669e2429 100644 (file)
        IF_FEATURE_WGET_LONG_OPTIONS( \
        "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \
        "       [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
-       "       [-U|--user-agent agent] url" \
+       "       [--no-check-certificate] [-U|--user-agent agent] url" \
        ) \
        IF_NOT_FEATURE_WGET_LONG_OPTIONS( \
        "[-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url" \
index 9d813dcc2a3361bfc305d4f374ca1900f169d3c5..2b9ba55c36f9f296b770df5ebdaac845479f4dfa 100644 (file)
@@ -546,6 +546,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
                "passive-ftp\0"      No_argument       "\xff"
                "header\0"           Required_argument "\xfe"
                "post-data\0"        Required_argument "\xfd"
+               /* Ignored (we don't do ssl) */
+               "no-check-certificate\0" No_argument   "\xfc"
                ;
 #endif