aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-08 16:59:44 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-08 17:26:29 +0200
commit6e4e6f8da69ea0caef7c00acc4de47d99811efc4 (patch)
treeb90a48e19987a7bcd2cbe6760028a61971091069
parent0734bc490fe51b9d93180b77a418f2969fe80f06 (diff)
downloadlibssh-6e4e6f8da69ea0caef7c00acc4de47d99811efc4.tar.gz
libssh-6e4e6f8da69ea0caef7c00acc4de47d99811efc4.tar.xz
libssh-6e4e6f8da69ea0caef7c00acc4de47d99811efc4.zip
tests: Fix #ifdef in torture_server_config
This should stop detecting it as dead code. CID 1402934 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-rw-r--r--tests/server/torture_server_config.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/server/torture_server_config.c b/tests/server/torture_server_config.c
index ac2f2669..89e8de61 100644
--- a/tests/server/torture_server_config.c
+++ b/tests/server/torture_server_config.c
@@ -430,10 +430,7 @@ static size_t setup_hostkey_files(struct test_server_st *tss)
hostkey_files[0] = tss->rsa_hostkey;
-#ifndef TEST_ALL_CRYPTO_COMBINATIONS
- goto end;
-#endif
-
+#ifdef TEST_ALL_CRYPTO_COMBINATIONS
hostkey_files[1] = tss->ecdsa_256_hostkey;
hostkey_files[2] = tss->ecdsa_384_hostkey;
hostkey_files[3] = tss->ecdsa_521_hostkey;
@@ -448,8 +445,8 @@ static size_t setup_hostkey_files(struct test_server_st *tss)
num_hostkey_files++;
#endif
}
+#endif /* TEST_ALL_CRYPTO_COMBINATIONS */
-end:
return num_hostkey_files;
}