Skip to content
Snippets Groups Projects
Commit f32d011d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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).
parent 14f79581
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment