Skip to content

DEPENDENCIES.md: document LibreSSL 3.4.1+ as required (due to TLSv1.3 API) - #23466

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:libredep
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:libredep

Conversation

@vszakats

@vszakats vszakats commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

3.4.0 is the first release exposing TLSv1.3 via OpenSSL 1.1.1 APIs. curl
does not build with earlier LibreSSL versions. As discovered when doing
test builds on OpenBSD 6.8, with LibreSSL 3.2.2.

If here, bump further to 3.4.1 to always enable
SSL_CTX_set_ciphersuites() support with the LibreSSL backend.

Avoiding (as seen with the test builds above):

In file included from libcurl_unity.c:158:
lib/vtls/openssl.c:2509:8: error: use of undeclared identifier 'TLS1_3_VERSION'
  case TLS1_3_VERSION:
       ^
lib/vtls/openssl.c:2611:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_min = TLS1_3_VERSION;
                           ^
lib/vtls/openssl.c:2630:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_max = TLS1_3_VERSION;
                           ^

Ref: https://github.com/curl/curl/actions/runs/39049752988/job/117446160051#step:10:29

Ref: #23448 (comment)
Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.1-relnotes.txt
Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.0-relnotes.txt
Cherry-picked from #23448

It's the first release exposing TLSv1.3 via OpenSSL 1.1.1 APIs.

Ref: curl#23448 (comment)
Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.4.0-relnotes.txt
Cherry-picked from curl#23448

---
In file included from libcurl_unity.c:158:
../../lib/vtls/openssl.c:2509:8: error: use of undeclared identifier 'TLS1_3_VERSION'
  case TLS1_3_VERSION:
       ^
../../lib/vtls/openssl.c:2611:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_min = TLS1_3_VERSION;
                           ^
../../lib/vtls/openssl.c:2630:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_max = TLS1_3_VERSION;
                           ^
In file included from libcurl_unity.c:158:
../../lib/vtls/openssl.c:2509:8: error: use of undeclared identifier 'TLS1_3_VERSION'
  case TLS1_3_VERSION:
       ^
../../lib/vtls/openssl.c:2611:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_min = TLS1_3_VERSION;
                           ^
../../lib/vtls/openssl.c:2630:28: error: use of undeclared identifier 'TLS1_3_VERSION'
    ossl_ssl_version_max = TLS1_3_VERSION;
                           ^
---
@vszakats vszakats changed the title DEPENDENCIES.md: document LibreSSL 3.4.0+ is required for TLSv1.3 DEPENDENCIES.md: document LibreSSL 3.4.0+ as minimum (due to TLSv1.3) Oct 18, 2026
To always include `SSL_CTX_set_ciphersuites()` support.
@vszakats vszakats changed the title DEPENDENCIES.md: document LibreSSL 3.4.0+ as minimum (due to TLSv1.3) DEPENDENCIES.md: document LibreSSL 3.4.1+ as minimum (due to TLSv1.3) Oct 18, 2026
@testclutch

Copy link
Copy Markdown

Analysis of PR #23466 at 9ddc1ac6:

Test ../../tests/http/test_60_h3_proxy.py::TestH3Proxy::test_60_12_quic_session_resumption failed, but it has been permanently failing lately, so it's probably NOT a fault of the PR. Note that this test has failed in 2 different CI jobs (the link just goes to one of them). Note that this CI job has had a number of other flaky tests recently (4, to be specific) so it may be that this failure is rather a systemic issue with this job and not with this specific PR.

Generated by Testclutch

@vszakats vszakats changed the title DEPENDENCIES.md: document LibreSSL 3.4.1+ as minimum (due to TLSv1.3) DEPENDENCIES.md: document LibreSSL 3.4.1+ as required (due to TLSv1.3 API) Oct 18, 2026
@vszakats

Copy link
Copy Markdown
Member Author

The other option is to implement support for LibreSSL <3.4.0 in lib/vtsl/openssl.c,
by making TLSv1.3 API parts disablable and optional in the code, but I figure
this makes no sense, and everyone's better off with TLSv1.3 enabled.

@vszakats vszakats closed this in 0521762 Oct 18, 2026
@vszakats
vszakats deleted the libredep branch October 18, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants