From: Christian Weisgerber Date: Fri, 29 Apr 2022 21:02:45 +0000 (+0200) Subject: openssl: define HAVE_SSL_CTX_SET_EC_CURVES for libressl X-Git-Tag: curl-7_83_1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3cf94f3ef8944392515d4a7cd1da55f2913b4ef;p=thirdparty%2Fcurl.git openssl: define HAVE_SSL_CTX_SET_EC_CURVES for libressl SSL_CTX_set1_curves_list() has been available since LibreSSL 2.5.3, released five years ago. Bug: https://curl.se/mail/lib-2022-04/0059.html Closes #8773 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 3722005d44..39c0a82b1a 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -215,11 +215,10 @@ * OpenSSL: supported since 1.0.2, see * https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set1_groups.html * BoringSSL: supported since 5fd1807d95f7 (committed 2016-09-30) - * LibreSSL: not tested. + * LibreSSL: since 2.5.3 (April 12, 2017) */ -#if ((OPENSSL_VERSION_NUMBER >= 0x10002000L) && \ - !defined(LIBRESSL_VERSION_NUMBER)) || \ - defined(OPENSSL_IS_BORINGSSL) +#if (OPENSSL_VERSION_NUMBER >= 0x10002000L) || \ + defined(OPENSSL_IS_BORINGSSL) #define HAVE_SSL_CTX_SET_EC_CURVES #endif