]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: use `SSL_CTX_set_ciphersuites` with LibreSSL 3.4.1
authorViktor Szakats <commit@vsz.me>
Mon, 7 Aug 2023 23:02:46 +0000 (23:02 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 8 Aug 2023 09:10:04 +0000 (09:10 +0000)
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

lib/vtls/openssl.c

index 43c9dd395c7b610bff7accce340e094fb2129c6e..924cd1c7e22096b4767d36963b5d2a532e06faa6 100644 (file)
 /* 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