|
|
@ -442,8 +442,11 @@ static json_t *json_rpc_call(CURL *curl, const char *url, |
|
|
|
if (opt_protocol) |
|
|
|
if (opt_protocol) |
|
|
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); |
|
|
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); |
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, url); |
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, url); |
|
|
|
if (opt_cert) |
|
|
|
if (opt_cert) { |
|
|
|
curl_easy_setopt(curl, CURLOPT_CAINFO, opt_cert); |
|
|
|
curl_easy_setopt(curl, CURLOPT_CAINFO, opt_cert); |
|
|
|
|
|
|
|
// ignore CN domain name, allow to move cert files
|
|
|
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); |
|
|
|
|
|
|
|
} |
|
|
|
curl_easy_setopt(curl, CURLOPT_ENCODING, ""); |
|
|
|
curl_easy_setopt(curl, CURLOPT_ENCODING, ""); |
|
|
|
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0); |
|
|
|
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0); |
|
|
|
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); |
|
|
|
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); |
|
|
|