mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Enable ecdh_sha2_nistp256 test only with openssl.
This commit is contained in:
@ -172,6 +172,7 @@ static void torture_algorithms_zlib_openssh(void **state) {
|
||||
ssh_disconnect(session);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBCRYPTO
|
||||
static void torture_algorithms_ecdh_sha2_nistp256(void **state) {
|
||||
ssh_session session = *state;
|
||||
int rc;
|
||||
@ -192,6 +193,7 @@ static void torture_algorithms_ecdh_sha2_nistp256(void **state) {
|
||||
|
||||
ssh_disconnect(session);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void torture_algorithms_dh_group1(void **state) {
|
||||
ssh_session session = *state;
|
||||
@ -227,7 +229,9 @@ int torture_run_tests(void) {
|
||||
unit_test_setup_teardown(torture_algorithms_zlib, setup, teardown),
|
||||
unit_test_setup_teardown(torture_algorithms_zlib_openssh, setup, teardown),
|
||||
unit_test_setup_teardown(torture_algorithms_dh_group1,setup,teardown),
|
||||
#ifdef HAVE_LIBCRYPTO
|
||||
unit_test_setup_teardown(torture_algorithms_ecdh_sha2_nistp256,setup,teardown)
|
||||
#endif
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
Reference in New Issue
Block a user