diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-12-11 21:11:49 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-12-11 21:12:12 +0100 |
commit | fd77439a123fcb40c070d969f3e75b14e524bb10 (patch) | |
tree | 6e81e0fd95c40f294053f05fed67690fb63ecb5f | |
parent | a633deb9854238a1c0ccd05c516b526f327545e8 (diff) | |
download | libssh-fd77439a123fcb40c070d969f3e75b14e524bb10.tar.gz libssh-fd77439a123fcb40c070d969f3e75b14e524bb10.tar.xz libssh-fd77439a123fcb40c070d969f3e75b14e524bb10.zip |
tests: Fix pki test with gcrypt.
-rw-r--r-- | tests/unittests/torture_pki.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 9f83e5db..5de0f44d 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -946,6 +946,7 @@ static void torture_pki_generate_key_ecdsa(void **state) } #endif +#ifdef HAVE_LIBCRYPTO static void torture_pki_write_privkey_rsa(void **state) { ssh_key origkey; @@ -1067,6 +1068,7 @@ static void torture_pki_write_privkey_ecdsa(void **state) ssh_key_free(privkey); } #endif +#endif /* HAVE_LIBCRYPTO */ int torture_run_tests(void) { int rc; @@ -1150,6 +1152,7 @@ int torture_run_tests(void) { #ifdef HAVE_ECC unit_test(torture_pki_generate_key_ecdsa), #endif +#ifdef HAVE_LIBCRYPTO unit_test_setup_teardown(torture_pki_write_privkey_rsa, setup_rsa_key, teardown), @@ -1161,6 +1164,7 @@ int torture_run_tests(void) { setup_ecdsa_key, teardown), #endif +#endif /* HAVE_LIBCRYPTO */ }; (void)setup_both_keys; |