From 5fed1bc8bec0eebd15b8a731ce4eecda5f7b7e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Mon, 1 Dec 2025 15:16:56 +0100 Subject: [PATCH] torture_packet: use SSH2_MSG_IGNORE type of test packet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With packet filtering now implemented for type 65, the current test packet would be rejected, resulting in failed tests. Signed-off-by: Pavol Žáčik Reviewed-by: Jakub Jelen Reviewed-by: Andreas Schneider --- tests/unittests/torture_packet.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/unittests/torture_packet.c b/tests/unittests/torture_packet.c index ce7a1762..51fa2e90 100644 --- a/tests/unittests/torture_packet.c +++ b/tests/unittests/torture_packet.c @@ -12,10 +12,11 @@ #include "socket.c" -uint8_t test_data[]="AThis is test data. Use it to check the validity of packet functions" - "AThis is test data. Use it to check the validity of packet functions" - "AThis is test data. Use it to check the validity of packet functions" - "AThis is test data. Use it to check the validity of packet functions"; +uint8_t test_data[]="\x02" + "This is test data. Use it to check the validity of packet functions." + "This is test data. Use it to check the validity of packet functions." + "This is test data. Use it to check the validity of packet functions." + "This is test data. Use it to check the validity of packet functions."; uint8_t key[]="iekaeshoa7ooCie2shai8shahngee3ONsee3xoishooj0ojei6aeChieth1iraPh"; uint8_t iv[]="eixaxughoomah4ui7Aew3ohxuolaifuu"; uint8_t mac[]="thook2Jai0ahmahyae7ChuuruoPhee8Y"; @@ -57,7 +58,7 @@ torture_packet(const char *cipher, const char *mac_type, size_t encrypted_packet_len; ssh_packet_callback callbacks[]={copy_packet_data}; struct ssh_packet_callbacks_struct cb = { - .start='A', + .start=2, .n_callbacks=1, .callbacks=callbacks, .user=response