aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-23 07:46:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-23 07:46:22 +0000
commitf32d011d907175c158ecd7ec02eb4dbed73ed29e (patch)
tree262781c6de46dcbc93493dc5ab76e7a6b1a1234e
parent14f795816d445b4dfab19884b24ebacb8596f1f9 (diff)
Georg Horn's patch. -k is no longer mutually exclusive with --cacert and
--capath. Using -k together with one of those just means that the result of the CA cert check is ignored (but displayed if -v is used).
-rw-r--r--src/main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index cd9b5f03f..06fc8dff0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3158,12 +3158,11 @@ operate(struct Configurable *config, int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_CAPATH, config->capath);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
}
- else
- if(config->insecure_ok) {
- /* new stuff needed for libcurl 7.10 */
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
- }
+ if(config->insecure_ok) {
+ /* new stuff needed for libcurl 7.10 */
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
+ }
if((config->conf&CONF_NOBODY) ||
config->remote_time) {