!397 完善加密算法测试用例

From: @no_coke 
Reviewed-by: @yangyuan32 
Signed-off-by: @yangyuan32
This commit is contained in:
openeuler-ci-bot 2024-12-10 10:31:59 +00:00 committed by Gitee
commit e2e170093b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From f1b6f59e1883ea5fdb543d2e0554a45d6b756caf Mon Sep 17 00:00:00 2001
From: GuoCe <guoce@kylinos.cn>
Date: Sat, 7 Dec 2024 16:15:49 +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 965c272..453624b 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -4324,6 +4324,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.33.0

View File

@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language
URL: https://www.python.org/ URL: https://www.python.org/
Version: 3.11.6 Version: 3.11.6
Release: 8 Release: 9
License: Python-2.0 License: Python-2.0
%global branchversion 3.11 %global branchversion 3.11
@ -111,6 +111,7 @@ Patch6014: backport-CVE-2024-9287.patch
Patch9000: add-the-sm3-method-for-obtaining-the-salt-value.patch Patch9000: add-the-sm3-method-for-obtaining-the-salt-value.patch
Patch9001: 0001-add-loongarch64-support-for-python.patch Patch9001: 0001-add-loongarch64-support-for-python.patch
Patch9002: fix-check-error-with-CVEfixed-expat-2.5.0.patch Patch9002: fix-check-error-with-CVEfixed-expat-2.5.0.patch
Patch9003: 0001-expected_algs-list-to-include-TLS_SM4.patch
Provides: python%{branchversion} = %{version}-%{release} Provides: python%{branchversion} = %{version}-%{release}
Provides: python(abi) = %{branchversion} Provides: python(abi) = %{branchversion}
@ -225,6 +226,7 @@ rm configure pyconfig.h.in
%patch -P9000 -p1 %patch -P9000 -p1
%patch -P9001 -p1 %patch -P9001 -p1
%patch -P9002 -p1 %patch -P9002 -p1
%patch -P9003 -p1
%build %build
autoconf autoconf
@ -886,6 +888,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Sat Dec 07 2024 GuoCe <guoce@kylinos.cn> - 3.11.6-9
- Type:update
- CVE:NA
- SUG:NA
- DESC:support TLS_SM4
* Tue Nov 12 2024 Funda Wang <fundawang@yeah.net> - 3.11.6-8 * Tue Nov 12 2024 Funda Wang <fundawang@yeah.net> - 3.11.6-8
- Type:CVE - Type:CVE
- CVE:CVE-2024-9287 - CVE:CVE-2024-9287