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.
This commit is contained in:
@@ -60,7 +60,7 @@ static void add_feature_with_ssl(private_curl_plugin_t *this, const char *ssl,
|
|||||||
char *proto, plugin_feature_t f)
|
char *proto, plugin_feature_t f)
|
||||||
{
|
{
|
||||||
/* http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading */
|
/* 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, f);
|
||||||
add_feature(this, PLUGIN_DEPENDS(CUSTOM, "openssl-threading"));
|
add_feature(this, PLUGIN_DEPENDS(CUSTOM, "openssl-threading"));
|
||||||
|
|||||||
Reference in New Issue
Block a user