From e2365775030fa3c696e1f75997d5bc856a19e3ed Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 30 Aug 2011 09:34:23 +0200 Subject: [PATCH] tests: Enable ecdh_sha2_nistp256 test only with openssl. --- tests/client/torture_algorithms.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c index 6a44ecf4..505870f2 100644 --- a/tests/client/torture_algorithms.c +++ b/tests/client/torture_algorithms.c @@ -172,6 +172,7 @@ static void torture_algorithms_zlib_openssh(void **state) { ssh_disconnect(session); } +#ifdef HAVE_LIBCRYPTO static void torture_algorithms_ecdh_sha2_nistp256(void **state) { ssh_session session = *state; int rc; @@ -192,6 +193,7 @@ static void torture_algorithms_ecdh_sha2_nistp256(void **state) { ssh_disconnect(session); } +#endif static void torture_algorithms_dh_group1(void **state) { ssh_session session = *state; @@ -227,7 +229,9 @@ int torture_run_tests(void) { unit_test_setup_teardown(torture_algorithms_zlib, setup, teardown), unit_test_setup_teardown(torture_algorithms_zlib_openssh, setup, teardown), unit_test_setup_teardown(torture_algorithms_dh_group1,setup,teardown), +#ifdef HAVE_LIBCRYPTO unit_test_setup_teardown(torture_algorithms_ecdh_sha2_nistp256,setup,teardown) +#endif }; ssh_init();