]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 19 Jul 2026 09:38:47 +0000 (12:38 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 09:38:47 +0000 (12:38 +0300)
commit39b058f8ad29238edc8b65406bb1fb0bc3c0020d
tree66a0bf143fc7c63b41f23b6e7087401c36e98997
parent30541f202f81ab3d3da5a6ac10c07fb6f1e4dcb4
gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054)

LibreSSL does not provide SSL_CTX_set1_sigalgs_list() or
SSL_CTX_set1_client_sigalgs_list(), added in gh-138252, so _ssl failed to
compile against LibreSSL on 3.15+. Guard the set_server_sigalgs() and
set_client_sigalgs() methods so they raise NotImplementedError on LibreSSL,
and skip the corresponding tests.
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2026-07-19-00-00-00.gh-issue-154053.LibreSSLsigalgs.rst [new file with mode: 0644]
Modules/_ssl.c