diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 09:34:23 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 09:34:23 +0200 |
commit | e2365775030fa3c696e1f75997d5bc856a19e3ed (patch) | |
tree | b91b5ad6a44a5ae9691434d87333daef7f800dc3 /tests | |
parent | 85d12f6774abd216fef571da48a3bdfd1c5ef169 (diff) | |
download | libssh-e2365775030fa3c696e1f75997d5bc856a19e3ed.tar.gz libssh-e2365775030fa3c696e1f75997d5bc856a19e3ed.tar.xz libssh-e2365775030fa3c696e1f75997d5bc856a19e3ed.zip |
tests: Enable ecdh_sha2_nistp256 test only with openssl.
Diffstat (limited to 'tests')
-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 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(); |