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).
This commit is contained in:
@@ -3158,7 +3158,6 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
curl_easy_setopt(curl, CURLOPT_CAPATH, config->capath);
|
curl_easy_setopt(curl, CURLOPT_CAPATH, config->capath);
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
if(config->insecure_ok) {
|
if(config->insecure_ok) {
|
||||||
/* new stuff needed for libcurl 7.10 */
|
/* new stuff needed for libcurl 7.10 */
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user