Skip to content

Commit 9793ac5

Browse files
authored
Upgrade OpenSSL to 3.5.3 (#797)
1 parent 4cec933 commit 9793ac5

File tree

5 files changed

+6
-30
lines changed

5 files changed

+6
-30
lines changed

cpython-unix/build-openssl-3.5.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ tar -xf openssl-${OPENSSL_3_5_VERSION}.tar.gz
1313

1414
pushd openssl-${OPENSSL_3_5_VERSION}
1515

16-
# hardcode the vlenb CSR address (0xc22) as our GCC version doesn't know it
17-
# https://github.com/riscv/riscv-isa-manual/blob/c001fa237cdd8b6079384044462a89eb0e3fd9cf/src/v-st-ext.adoc?plain=1#L74
18-
if [[ "${TARGET_TRIPLE}" = "riscv64-unknown-linux-gnu" ]]; then
19-
patch -p1 -i "${ROOT}/patch-openssl-3.5-riscv-vlenb-register.patch"
20-
fi
21-
2216
# Otherwise it gets set to /tools/deps/ssl by default.
2317
case "${TARGET_TRIPLE}" in
2418
*apple*)

cpython-unix/build.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,10 @@ def simple_build(
274274

275275
add_target_env(env, host_platform, target_triple, build_env)
276276

277-
# for OpenSSL, set the OPENSSL_TARGET environment variable and copy in patches
277+
# for OpenSSL, set the OPENSSL_TARGET environment variable
278278
if entry.startswith("openssl-"):
279279
settings = get_targets(TARGETS_CONFIG)[target_triple]
280280
env["OPENSSL_TARGET"] = settings["openssl_target"]
281-
build_env.copy_file(
282-
SUPPORT / "patch-openssl-3.5-riscv-vlenb-register.patch"
283-
)
284281

285282
build_env.run("build-%s.sh" % entry, environment=env)
286283

cpython-unix/patch-openssl-3.5-riscv-vlenb-register.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.

pythonbuild/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@
262262
},
263263
# Remember to update OPENSSL_VERSION_INFO in verify_distribution.py whenever upgrading.
264264
"openssl-3.5": {
265-
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.2/openssl-3.5.2.tar.gz",
266-
"size": 53180161,
267-
"sha256": "c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec",
268-
"version": "3.5.2",
265+
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.3/openssl-3.5.3.tar.gz",
266+
"size": 53183370,
267+
"sha256": "c9489d2abcf943cdc8329a57092331c598a402938054dc3a22218aea8a8ec3bf",
268+
"version": "3.5.3",
269269
"library_names": ["crypto", "ssl"],
270270
"licenses": ["Apache-2.0"],
271271
"license_file": "LICENSE.openssl-3.txt",

src/verify_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_ssl(self):
192192
if os.name == "nt" and sys.version_info[0:2] < (3, 11):
193193
wanted_version = (1, 1, 1, 23, 15)
194194
else:
195-
wanted_version = (3, 5, 0, 2, 0)
195+
wanted_version = (3, 5, 0, 3, 15)
196196

197197
self.assertEqual(ssl.OPENSSL_VERSION_INFO, wanted_version)
198198

0 commit comments

Comments
 (0)