diff options
author | Jakub Jelen <jjelen@redhat.com> | 2019-02-02 16:49:05 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-02-07 10:30:05 +0100 |
commit | fffa66698f6cdc2046dc54b5f40ecc5446cdcbca (patch) | |
tree | 2203b3505a7ead2c59275be24c967d697bd05886 /tests/client/torture_algorithms.c | |
parent | a17058014726a21fd714ccb9152ec2d86458b5a1 (diff) | |
download | libssh-fffa66698f6cdc2046dc54b5f40ecc5446cdcbca.tar.gz libssh-fffa66698f6cdc2046dc54b5f40ecc5446cdcbca.tar.xz libssh-fffa66698f6cdc2046dc54b5f40ecc5446cdcbca.zip |
Allow building without Group Exchange support
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/client/torture_algorithms.c')
-rw-r--r-- | tests/client/torture_algorithms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c index 097e3c3c..aa1bf524 100644 --- a/tests/client/torture_algorithms.c +++ b/tests/client/torture_algorithms.c @@ -438,6 +438,7 @@ static void torture_algorithms_dh_group18(void **state) { test_algorithm(s->ssh.session, "diffie-hellman-group18-sha512", NULL/*cipher*/, NULL/*hmac*/); } +#ifdef WITH_GEX static void torture_algorithms_dh_gex_sha1(void **state) { struct torture_state *s = *state; @@ -457,6 +458,7 @@ static void torture_algorithms_dh_gex_sha256(void **state) NULL, /* cipher */ NULL); /* hmac */ } +#endif /* WITH_GEX */ int torture_run_tests(void) { int rc; @@ -564,12 +566,14 @@ int torture_run_tests(void) { cmocka_unit_test_setup_teardown(torture_algorithms_dh_group18, session_setup, session_teardown), +#ifdef WITH_GEX cmocka_unit_test_setup_teardown(torture_algorithms_dh_gex_sha1, session_setup, session_teardown), cmocka_unit_test_setup_teardown(torture_algorithms_dh_gex_sha256, session_setup, session_teardown), +#endif /* WITH_GEX */ #if ((OPENSSH_VERSION_MAJOR == 7 && OPENSSH_VERSION_MINOR >= 3) || OPENSSH_VERSION_MAJOR > 7) cmocka_unit_test_setup_teardown(torture_algorithms_ecdh_curve25519_sha256, session_setup, |