Skip to content

gh-159387: Fix TLS 1.0–1.2 availability detection with OpenSSL 4.0 - #159388

Merged
gpshead merged 1 commit into
python:mainfrom
lpyu001:ssl_TSL_1.2
Oct 31, 2026
Merged

gpshead merged 1 commit into
python:mainfrom
lpyu001:ssl_TSL_1.2

Conversation

@lpyu001

@lpyu001 lpyu001 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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.

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.
@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

I think Victor is the one who changed the macros, but I think it's right the fix (but I only skimmed through it)

@gpshead
gpshead enabled auto-merge (squash) October 31, 2026 23:26
@gpshead
gpshead merged commit e7acd6a into python:main Oct 31, 2026
61 checks passed
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