1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Aris Adamantiadis
2018-02-28 10:24:56 -06:00
committed by Andreas Schneider
parent 238202d380
commit 27711f6a4c

View File

@ -261,6 +261,16 @@ static void torture_algorithms_blowfish_cbc_hmac_sha2_512(void **state) {
}
#endif
static void torture_algorithms_chacha20_poly1305(void **state)
{
struct torture_state *s = *state;
test_algorithm(s->ssh.session,
NULL, /*kex*/
"chacha20-poly1305@openssh.com",
NULL);
}
static void torture_algorithms_zlib(void **state) {
struct torture_state *s = *state;
ssh_session session = s->ssh.session;
@ -441,6 +451,9 @@ int torture_run_tests(void) {
session_setup,
session_teardown),
#endif
cmocka_unit_test_setup_teardown(torture_algorithms_chacha20_poly1305,
session_setup,
session_teardown),
cmocka_unit_test_setup_teardown(torture_algorithms_zlib,
session_setup,
session_teardown),