diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-06 19:47:36 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-06 19:47:36 +0100 |
commit | e86b06ba2cbf8779fa92b9b76c4229e15d173185 (patch) | |
tree | 2d375e227eccb5ae3133dde6ffdef2654d2c5460 /src/cmdline.h | |
parent | adda452d76f9b1ed04229d85ca43164102d4405d (diff) | |
download | nagios-plugin-curl-e86b06ba2cbf8779fa92b9b76c4229e15d173185.tar.gz nagios-plugin-curl-e86b06ba2cbf8779fa92b9b76c4229e15d173185.tar.bz2 |
added an --insecure switch for SSL connections with self-signed certificates
Diffstat (limited to 'src/cmdline.h')
-rw-r--r-- | src/cmdline.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmdline.h b/src/cmdline.h index 09b27b3..13b1d8f 100644 --- a/src/cmdline.h +++ b/src/cmdline.h @@ -79,7 +79,8 @@ struct gengetopt_args_info char * useragent_arg; /**< @brief String to be sent in http header as \"User Agent\". */ char * useragent_orig; /**< @brief String to be sent in http header as \"User Agent\" original value given at command line. */ const char *useragent_help; /**< @brief String to be sent in http header as \"User Agent\" help description. */ - const char *no_verify_peer_help; /**< @brief Allow connections to SSL sites without certs (SSL) help description. */ + const char *insecure_help; /**< @brief Allow insecure SSL connections help description. */ + const char *no_verify_peer_help; /**< @brief Allow connections to SSL sites without verifying certificates (SSL) help description. */ const char *no_verify_host_help; /**< @brief Don't verify that the host and the certificate host match (SSL) help description. */ char * cacert_arg; /**< @brief CA certificate to verify peer against (SSL). */ char * cacert_orig; /**< @brief CA certificate to verify peer against (SSL) original value given at command line. */ @@ -111,6 +112,7 @@ struct gengetopt_args_info unsigned int string_given ; /**< @brief Whether string was given. */ unsigned int ssl_given ; /**< @brief Whether ssl was given. */ unsigned int useragent_given ; /**< @brief Whether useragent was given. */ + unsigned int insecure_given ; /**< @brief Whether insecure was given. */ unsigned int no_verify_peer_given ; /**< @brief Whether no-verify-peer was given. */ unsigned int no_verify_host_given ; /**< @brief Whether no-verify-host was given. */ unsigned int cacert_given ; /**< @brief Whether cacert was given. */ |