aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-04-08 14:37:21 +0200
committerTobias Brunner <tobias@strongswan.org>2016-04-15 10:31:19 +0200
commitde9b3491ad9f7988c33374695a10c0fa07f6f8c4 (patch)
tree0ea0b211a69dab81afb04c2223532cb669edfa1e
parente8c73c1cf0058803d285f49b09ab5072eb8fcef0 (diff)
downloadstrongswan-de9b3491ad9f7988c33374695a10c0fa07f6f8c4.tar.bz2
strongswan-de9b3491ad9f7988c33374695a10c0fa07f6f8c4.tar.xz
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.
-rw-r--r--src/libstrongswan/plugins/curl/curl_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/curl/curl_plugin.c b/src/libstrongswan/plugins/curl/curl_plugin.c
index 89296677e..f9e5dcd27 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"));