]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Jul 2026 12:30:29 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 12:30:29 +0000 (15:30 +0300)
commit114aa8c402bd9289c8bd5b59137b14cf2f5dc64b
tree30b71f91600b4e24907a74740615a954ca17e989
parent9f7c44fc7bd3fcd041dd9d6daee7801131ad01a1
[3.15] gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054) (GH-154075)

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.
(cherry picked from commit 39b058f8ad29238edc8b65406bb1fb0bc3c0020d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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