From 8e418ea020ae799061a62b51faf13bbe3aeb3557 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 20 Aug 2018 15:30:42 +0200 Subject: [PATCH] tests: Fix function declaration in torture_packet Signed-off-by: Andreas Schneider --- tests/unittests/torture_packet.c | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/tests/unittests/torture_packet.c b/tests/unittests/torture_packet.c index 01edb18b..61f4b049 100644 --- a/tests/unittests/torture_packet.c +++ b/tests/unittests/torture_packet.c @@ -131,57 +131,73 @@ static void torture_packet(const char *cipher, ssh_free(session); } -static void torture_packet_aes128_ctr() { +static void torture_packet_aes128_ctr(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes128-ctr","hmac-sha1",i); } } -static void torture_packet_aes192_ctr(){ +static void torture_packet_aes192_ctr(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes192-ctr","hmac-sha1",i); } } -static void torture_packet_aes256_ctr(){ +static void torture_packet_aes256_ctr(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes256-ctr","hmac-sha1",i); } } -static void torture_packet_aes128_cbc() { +static void torture_packet_aes128_cbc(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes128-cbc","hmac-sha1",i); } } -static void torture_packet_aes192_cbc(){ +static void torture_packet_aes192_cbc(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes192-cbc","hmac-sha1",i); } } -static void torture_packet_aes256_cbc(){ +static void torture_packet_aes256_cbc(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("aes256-cbc","hmac-sha1",i); } } -static void torture_packet_3des_cbc(){ +static void torture_packet_3des_cbc(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("3des-cbc","hmac-sha1",i); } } -static void torture_packet_chacha20(){ +static void torture_packet_chacha20(void **state) +{ int i; + (void)state; /* unused */ for (i=1;i<256;++i){ torture_packet("chacha20-poly1305@openssh.com","none",i); }