From 689f8abbaa6cc05a0a22b0bee978a758c8735cd1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 9 Oct 2011 12:33:54 +1100 Subject: [PATCH] Try to use SSL if the server supports it. --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 2417be7d..54bb80cd 100644 --- a/util.c +++ b/util.c @@ -329,6 +329,7 @@ json_t *json_rpc_call(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, resp_hdr_cb); curl_easy_setopt(curl, CURLOPT_HEADERDATA, &hi); + curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY); if (userpass) { curl_easy_setopt(curl, CURLOPT_USERPWD, userpass); curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);