From e9a34e198f9233ff7271c66514fe07a18d73bb98 Mon Sep 17 00:00:00 2001 From: wangshuo Date: Wed, 11 Dec 2024 01:08:33 +0800 Subject: [PATCH] support TLS_SM4 --- ...xpected_algs-list-to-include-TLS_SM4.patch | 24 +++++++++++++++++++ python3.spec | 10 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-expected_algs-list-to-include-TLS_SM4.patch diff --git a/0001-expected_algs-list-to-include-TLS_SM4.patch b/0001-expected_algs-list-to-include-TLS_SM4.patch new file mode 100644 index 0000000..2ad53bb --- /dev/null +++ b/0001-expected_algs-list-to-include-TLS_SM4.patch @@ -0,0 +1,24 @@ +From e9125a4a29e9c615a2562446f07c1b1ffaa6061f Mon Sep 17 00:00:00 2001 +From: wangshuo +Date: Wed, 11 Dec 2024 01:05:25 +0800 +Subject: [PATCH] expected_algs list to include TLS_SM4 + +--- + Lib/test/test_ssl.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py +index 50734f6..0db51bc 100644 +--- a/Lib/test/test_ssl.py ++++ b/Lib/test/test_ssl.py +@@ -4222,6 +4222,7 @@ class ThreadedTests(unittest.TestCase): + "AES256", "AES-256", + # TLS 1.3 ciphers are always enabled + "TLS_CHACHA20", "TLS_AES", ++ "TLS_SM4", + ] + + stats = server_params_test(client_context, server_context, +-- +2.43.0 + diff --git a/python3.spec b/python3.spec index 6f57449..cc1c364 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.7.9 -Release: 41 +Release: 42 License: Python-2.0 %global branchversion 3.7 @@ -191,6 +191,7 @@ Patch9009: backport-3.7-gh-115133-Fix-test_xml_etree-error-with-expat-ve.patch Patch9010: backport-3.7-gh-104049-do-not-expose-on-disk-location-from-Si.patch Patch9011: backport-3.7-gh-99889-Fix-directory-traversal-security-flaw-i.patch +Patch9012: 0001-expected_algs-list-to-include-TLS_SM4.patch Provides: python%{branchversion} = %{version}-%{release} @@ -363,6 +364,7 @@ rm Lib/ensurepip/_bundled/*.whl %patch9010 -p1 %patch9011 -p1 +%patch9012 -p1 sed -i "s/generic_os/%{_vendor}/g" Lib/platform.py rm configure pyconfig.h.in @@ -968,6 +970,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Wed Dec 11 2024 wangshuo - 3.7.9-42 +- Type:update +- CVE:NA +- SUG:NA +- DESC:support TLS_SM4 + * Tue Oct 29 2024 wangshuo - 3.7.9-41 - Type:bugfix - ID:NA -- Gitee