]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
curl: Add TLS support if libcurl is built against BoringSSL
authorTobias Brunner <tobias@strongswan.org>
Mon, 11 Apr 2016 09:33:41 +0000 (11:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 15 Apr 2016 08:32:53 +0000 (10:32 +0200)
We don't have to rely on the openssl plugin and its threading
initialization as BoringSSL is thread-safe out of the box.

src/libstrongswan/plugins/curl/curl_plugin.c

index f9e5dcd276b51033237172812d5061017e0a560f..42ae9cdd26da2d41d34a7fd244c37ff401d400e8 100644 (file)
@@ -70,7 +70,8 @@ static void add_feature_with_ssl(private_curl_plugin_t *this, const char *ssl,
                add_feature(this, f);
                add_feature(this, PLUGIN_DEPENDS(CUSTOM, "gcrypt-threading"));
        }
-       else if (strpfx(ssl, "NSS"))
+       else if (strpfx(ssl, "NSS") ||
+                        strpfx(ssl, "BoringSSL"))
        {
                add_feature(this, f);
        }