Skip to content

[3.15] gh-159387: Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0 (GH-159388) - #161320

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-e7acd6a-3.15
Nov 6, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-e7acd6a-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0

OpenSSL 4.0 removed the version-specific methods but still supports
TLS 1.0–1.2 through TLS_method(). Stop reporting these versions as
unavailable, and expose legacy PROTOCOL_TLSv1* constants only when their corresponding methods exist.
(cherry picked from commit e7acd6a)

Co-authored-by: Pengyu Lee lipengyu@kylinos.cn

…4.0 (pythonGH-159388)

Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0

OpenSSL 4.0 removed the version-specific methods but still supports
TLS 1.0–1.2 through TLS_method(). Stop reporting these versions as
unavailable, and expose legacy PROTOCOL_TLSv1* constants only when their corresponding methods exist.
(cherry picked from commit e7acd6a)

Co-authored-by: Pengyu Lee <lipengyu@kylinos.cn>
@vstinner
vstinner enabled auto-merge (squash) November 4, 2026 15:24
@vstinner
vstinner merged commit 3e87c63 into python:3.15 Nov 6, 2026
100 of 102 checks passed
@miss-islington
miss-islington deleted the backport-e7acd6a-3.15 branch November 6, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants