diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-07-08 16:59:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-07-08 18:39:44 +0200 |
commit | 8e793d930e5d10aab3e89a40cfc6bbfa9f8a5c58 (patch) | |
tree | 07392ccd24bdc90177fc01123e08001b67f2f754 | |
parent | cc2feabe73c8305fef7343e63eee93b5ad6a64bf (diff) | |
download | libssh-8e793d930e5d10aab3e89a40cfc6bbfa9f8a5c58.tar.gz libssh-8e793d930e5d10aab3e89a40cfc6bbfa9f8a5c58.tar.xz libssh-8e793d930e5d10aab3e89a40cfc6bbfa9f8a5c58.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.c | 7 |
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; } |