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>
Этот коммит содержится в:
родитель
0734bc490f
Коммит
6e4e6f8da6
@ -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;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user