diff --git a/src/sslhelper.c b/src/sslhelper.c index 5a0cebe..35c7ad5 100644 --- a/src/sslhelper.c +++ b/src/sslhelper.c @@ -1596,7 +1596,8 @@ static int switch_to_anon_dh(void) { if (ssl_client_mode) { return 1; } -#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || \ + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x3060000fL) /* Security level must be set to 0 for unauthenticated suites. */ SSL_CTX_set_security_level(ctx, 0); #endif