mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
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>
This commit is contained in:
@ -430,10 +430,7 @@ static size_t setup_hostkey_files(struct test_server_st *tss)
|
|||||||
|
|
||||||
hostkey_files[0] = tss->rsa_hostkey;
|
hostkey_files[0] = tss->rsa_hostkey;
|
||||||
|
|
||||||
#ifndef TEST_ALL_CRYPTO_COMBINATIONS
|
#ifdef TEST_ALL_CRYPTO_COMBINATIONS
|
||||||
goto end;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
hostkey_files[1] = tss->ecdsa_256_hostkey;
|
hostkey_files[1] = tss->ecdsa_256_hostkey;
|
||||||
hostkey_files[2] = tss->ecdsa_384_hostkey;
|
hostkey_files[2] = tss->ecdsa_384_hostkey;
|
||||||
hostkey_files[3] = tss->ecdsa_521_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++;
|
num_hostkey_files++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif /* TEST_ALL_CRYPTO_COMBINATIONS */
|
||||||
|
|
||||||
end:
|
|
||||||
return num_hostkey_files;
|
return num_hostkey_files;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user