]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
curl: Handle LibreSSL like OpenSSL in regards to multi-threading
authorTobias Brunner <tobias@strongswan.org>
Fri, 8 Apr 2016 12:37:21 +0000 (14:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 15 Apr 2016 08:31:19 +0000 (10:31 +0200)
LibreSSL is API compatible so our openssl plugin does not need any
changes and it works fine with the curl plugin.

src/libstrongswan/plugins/curl/curl_plugin.c

index 89296677ed613d91382e1dbafde4b8dce5e6812a..f9e5dcd276b51033237172812d5061017e0a560f 100644 (file)
@@ -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"));