diff --git a/0022-Fix-test-for-torture_rekey-in-RiscV.patch b/0022-Fix-test-for-torture_rekey-in-RiscV.patch new file mode 100644 index 0000000000000000000000000000000000000000..70cce1029448e8cc6ca49fecf69b5d46ba3647ce --- /dev/null +++ b/0022-Fix-test-for-torture_rekey-in-RiscV.patch @@ -0,0 +1,25 @@ +From 19e8ea69ba091f0b64cbb4a59840a29d99f9e805 Mon Sep 17 00:00:00 2001 +From: NewStart +Date: Thu, 5 Jun 2025 10:45:47 -0400 +Subject: [PATCH] fix test for torture_rekey in riscv + +--- + tests/client/torture_rekey.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/client/torture_rekey.c b/tests/client/torture_rekey.c +index 57e03e3..4ecdcba 100644 +--- a/tests/client/torture_rekey.c ++++ b/tests/client/torture_rekey.c +@@ -38,7 +38,7 @@ + #include + #include + +-#define KEX_RETRY 32 ++#define KEX_RETRY 64 + + static uint64_t bytes = 2048; /* 2KB (more than the authentication phase) */ + +-- +2.41.0 + diff --git a/libssh.spec b/libssh.spec index 3acd9964bb9802476f63513ecc7d509da24d3403..428840ffc0f6df12436e9aa14a56f459893d2c6f 100644 --- a/libssh.spec +++ b/libssh.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 %global _smp_build_ncpus 1 Name: libssh @@ -37,6 +37,7 @@ Patch0018: 0018-CVE-2023-6918-tests-Code-coverage-for-ssh_get_pubkey.patch Patch0019: 0019-CVE-2023-6004-torture_config-Allow-multiple-in-usern.patch Patch0020: 0020-Fix-regression-in-IPv6-addresses-in-hostname-parsing.patch Patch0021: 0021-tests-Increase-test-coverage-for-IPv6-address-parsin.patch +Patch0022: 0022-Fix-test-for-torture_rekey-in-RiscV.patch BuildRequires: cmake gcc-c++ BuildRequires: openssl-devel zlib-devel krb5-devel libcmocka-devel @@ -147,6 +148,9 @@ popd %doc AUTHORS CHANGELOG README %changelog +* Thu Jun 05 2025 NewStart - 0.10.5-4 +- Fix test for torture_rekey in RiscV + * Wed Mar 12 2025 Chang Gao - 0.10.5-3 - Fix CVE-2023-6004 - Fix CVE-2023-48795