Skip to content

Build OpenSSL with no-uplink for Python 3.12+#1132

Merged
jjhelmus merged 4 commits into
mainfrom
jjh/fix_applink
May 21, 2026
Merged

Build OpenSSL with no-uplink for Python 3.12+#1132
jjhelmus merged 4 commits into
mainfrom
jjh/fix_applink

Conversation

@jjhelmus
Copy link
Copy Markdown
Contributor

@jjhelmus jjhelmus commented May 20, 2026

Following the behavior of CPython which dropped uplink support in 3.12, build OpenSSL with the no-uplink option starting with CPython 3.12.

This allows a SSLContext to be created even when a SSLKEYLOGFILE environment variable is set on Windows.

closes #640

jjhelmus added 2 commits May 20, 2026 15:44
Uplink support was dropping upstream when building OpenSSL in CPython
3.12. Follow this behavior but keep uplink support in 3.10 and 3.11.
@jjhelmus jjhelmus added platform:windows Specific to the Windows platform python:all Select all Python versions arch:all Select all architectures build:all labels May 20, 2026
@jjhelmus
Copy link
Copy Markdown
Contributor Author

Upstream uplink support was removed in python/cpython#131839. This was backported to 3.12 and 3.13 but not 3.11 or 3.10.

@jjhelmus jjhelmus changed the title Build OpenSSL and CPython with no-uplink for Python 3.12+ Build OpenSSL with no-uplink for Python 3.12+ May 20, 2026
@jjhelmus
Copy link
Copy Markdown
Contributor Author

In addition to the disttests, I have build and tested Python 3.14 and 3.10 build using this change on a local Windows machine. An SSLContext as well as https requests can be made with or without a SSLKEYLOGFILE environment variable with this change.

@jjhelmus jjhelmus requested a review from zanieb May 20, 2026 21:55
Allow cleanup of test_ssl_with_keylogfile to fail and remove the context
which should allow the file to be deleted.
@jjhelmus jjhelmus merged commit 6905b66 into main May 21, 2026
65 of 67 checks passed
@jjhelmus jjhelmus deleted the jjh/fix_applink branch May 21, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch:all Select all architectures build:all platform:windows Specific to the Windows platform python:all Select all Python versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OPENSSL_Applink crash on Windows

2 participants