Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pythonbuild/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@
},
# Remember to update OPENSSL_VERSION_INFO in verify_distribution.py whenever upgrading.
"openssl-3.5": {
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.3/openssl-3.5.3.tar.gz",
"size": 53183370,
"sha256": "c9489d2abcf943cdc8329a57092331c598a402938054dc3a22218aea8a8ec3bf",
"version": "3.5.3",
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz",
"size": 53190367,
"sha256": "967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99",
"version": "3.5.4",
"library_names": ["crypto", "ssl"],
"licenses": ["Apache-2.0"],
"license_file": "LICENSE.openssl-3.txt",
Expand Down
9 changes: 7 additions & 2 deletions src/verify_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,16 @@ def test_ssl(self):
self.assertTrue(ssl.HAS_TLSv1_3)

# OpenSSL 1.1 on older CPython versions on Windows. 3.5 everywhere
# else.
# else. The format is documented a bit here:
# https://docs.openssl.org/1.1.1/man3/OPENSSL_VERSION_NUMBER/
# https://docs.openssl.org/3.5/man3/OpenSSL_version/
# For 1.x it is the three numerical version components, the
# suffix letter as a 1-based integer, and 0xF for "release". For
# 3.x it is the major, minor, 0, patch, and 0.
if os.name == "nt" and sys.version_info[0:2] < (3, 11):
wanted_version = (1, 1, 1, 23, 15)
else:
wanted_version = (3, 5, 0, 3, 15)
wanted_version = (3, 5, 0, 4, 0)

self.assertEqual(ssl.OPENSSL_VERSION_INFO, wanted_version)

Expand Down