mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-06 00:00:10 -05:00
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:
parent
dcdcae0159
commit
85c95db17a
@ -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)
|
if (res != CURLE_OK)
|
||||||
{
|
{
|
||||||
DBG1(DBG_LIB, "global libcurl initializing failed: %s",
|
DBG1(DBG_LIB, "global libcurl initializing failed: %s",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user