curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

vtls/openssl.c: tweak HAVE_SSL_CTX_SET_EC_CURVES for LibreSSL

From: Christian Weisgerber via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 27 Apr 2022 23:04:52 +0200

Here's a small tweak to lib/vtls/openssl.c:

SSL_CTX_set1_curves_list() has been available since LibreSSL 2.5.3,
released five years ago. I suggest simply dropping the LibreSSL
check.

Alternatively, you can check for
  defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2050300fL

--- lib/vtls/openssl.c.orig
+++ lib/vtls/openssl.c
_at__at_ -217,8 +217,7 _at__at_
  * BoringSSL: supported since 5fd1807d95f7 (committed 2016-09-30)
  * LibreSSL: not tested.
  */
-#if ((OPENSSL_VERSION_NUMBER >= 0x10002000L) && \
- !defined(LIBRESSL_VERSION_NUMBER)) || \
+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L) || \
     defined(OPENSSL_IS_BORINGSSL)
 #define HAVE_SSL_CTX_SET_EC_CURVES
 #endif
-- 
Christian "naddy" Weisgerber                          naddy_at_mips.inka.de
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-27