From: Viktor Szakats Date: Mon, 7 Aug 2023 23:02:46 +0000 (+0000) Subject: openssl: use `SSL_CTX_set_ciphersuites` with LibreSSL 3.4.1 X-Git-Tag: curl-8_3_0~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0bb86c1e9b48aaef682530f1f3d2e410dff12b1;p=thirdparty%2Fcurl.git openssl: use `SSL_CTX_set_ciphersuites` with LibreSSL 3.4.1 LibreSSL 3.4.1 (2021-10-14) added support for `SSL_CTX_set_ciphersuites`. Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.1-relnotes.txt Reviewed-by: Jay Satiro Closes #11616 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 43c9dd395c..924cd1c7e2 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -203,11 +203,13 @@ /* Whether SSL_CTX_set_ciphersuites is available. * OpenSSL: supported since 1.1.1 (commit a53b5be6a05) * BoringSSL: no - * LibreSSL: no + * LibreSSL: supported since 3.4.1 (released 2021-10-14) */ -#if ((OPENSSL_VERSION_NUMBER >= 0x10101000L) && \ - !defined(LIBRESSL_VERSION_NUMBER) && \ - !defined(OPENSSL_IS_BORINGSSL)) +#if ((OPENSSL_VERSION_NUMBER >= 0x10101000L && \ + !defined(LIBRESSL_VERSION_NUMBER)) || \ + (defined(LIBRESSL_VERSION_NUMBER) && \ + LIBRESSL_VERSION_NUMBER >= 0x3040100fL)) && \ + !defined(OPENSSL_IS_BORINGSSL) #define HAVE_SSL_CTX_SET_CIPHERSUITES #if !defined(OPENSSL_IS_AWSLC) #define HAVE_SSL_CTX_SET_POST_HANDSHAKE_AUTH