torture_packet: use SSH2_MSG_IGNORE type of test packet

With packet filtering now implemented for type 65,
the current test packet would be rejected, resulting
in failed tests.

Signed-off-by: Pavol Žáčik <pzacik@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Pavol Žáčik
2025-12-01 15:16:56 +01:00
committed by Jakub Jelen
parent a30ba0091f
commit 5fed1bc8be

View File

@@ -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