From 8b407f1ca23d5f898c9004008df89cf5298524fc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 11 Dec 2013 21:11:49 +0100 Subject: [PATCH] tests: Fix pki test with gcrypt. --- tests/unittests/torture_pki.c | 4 ++++ 1 file changed, 4 insertions(+) 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;