From: Tobias Brunner Date: Fri, 8 Apr 2016 12:37:21 +0000 (+0200) Subject: curl: Handle LibreSSL like OpenSSL in regards to multi-threading X-Git-Tag: 5.4.1dr2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de9b3491ad9f7988c33374695a10c0fa07f6f8c4;p=thirdparty%2Fstrongswan.git curl: Handle LibreSSL like OpenSSL in regards to multi-threading LibreSSL is API compatible so our openssl plugin does not need any changes and it works fine with the curl plugin. --- diff --git a/src/libstrongswan/plugins/curl/curl_plugin.c b/src/libstrongswan/plugins/curl/curl_plugin.c index 89296677ed..f9e5dcd276 100644 --- a/src/libstrongswan/plugins/curl/curl_plugin.c +++ b/src/libstrongswan/plugins/curl/curl_plugin.c @@ -60,7 +60,7 @@ static void add_feature_with_ssl(private_curl_plugin_t *this, const char *ssl, char *proto, plugin_feature_t f) { /* http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading */ - if (strpfx(ssl, "OpenSSL")) + if (strpfx(ssl, "OpenSSL") || strpfx(ssl, "LibreSSL")) { add_feature(this, f); add_feature(this, PLUGIN_DEPENDS(CUSTOM, "openssl-threading"));