aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-07 12:04:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-07 12:04:58 +0200
commit0493c1fea9977dafd45cac62e2c961b347fe7bc3 (patch)
tree04773234337e641abfb28f9016731e27be3f03bc
parentecd2ee95e7024fcb93a8f3133f3eb335075e47e5 (diff)
downloadlibssh-0493c1fea9977dafd45cac62e2c961b347fe7bc3.tar.gz
libssh-0493c1fea9977dafd45cac62e2c961b347fe7bc3.tar.xz
libssh-0493c1fea9977dafd45cac62e2c961b347fe7bc3.zip
tests: Don't run ecdh tests if not supported by crypto lib.
-rw-r--r--tests/client/torture_algorithms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c
index 3f090a29..180efb71 100644
--- a/tests/client/torture_algorithms.c
+++ b/tests/client/torture_algorithms.c
@@ -174,7 +174,7 @@ static void torture_algorithms_zlib_openssh(void **state) {
ssh_disconnect(session);
}
-#ifdef HAVE_LIBCRYPTO
+#if defined(HAVE_LIBCRYPTO) && defined(HAVE_ECC)
static void torture_algorithms_ecdh_sha2_nistp256(void **state) {
ssh_session session = *state;
int rc;
@@ -231,7 +231,7 @@ 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
+#if defined(HAVE_LIBCRYPTO) && defined(HAVE_ECC)
unit_test_setup_teardown(torture_algorithms_ecdh_sha2_nistp256,setup,teardown)
#endif
};