curl: Try to initialize with SSL support to handle https:// URIs

If initialization fails, we fall back to the old behavior.
This commit is contained in:
Martin Willi 2014-08-28 11:09:26 +02:00
parent dcdcae0159
commit 85c95db17a

View File

@ -79,7 +79,12 @@ plugin_t *curl_plugin_create()
},
);
res = curl_global_init(CURL_GLOBAL_NOTHING);
res = curl_global_init(CURL_GLOBAL_SSL);
if (res != CURLE_OK)
{
/* no SSL support? Try without */
res = curl_global_init(CURL_GLOBAL_NOTHING);
}
if (res != CURLE_OK)
{
DBG1(DBG_LIB, "global libcurl initializing failed: %s",