mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
CVE-2019-14889: tests: Add tests for SCP client
Fixes T181
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 27bcac6845)
This commit is contained in:
committed by
Andreas Schneider
parent
f9189a8a9a
commit
182d363b27
@@ -17,11 +17,19 @@ set(LIBSSH_CLIENT_TESTS
|
||||
torture_request_env
|
||||
torture_client_global_requests)
|
||||
|
||||
find_program(SCP_EXECUTABLE NAMES scp)
|
||||
if (SCP_EXECUTABLE)
|
||||
set(LIBSSH_CLIENT_TESTS
|
||||
${LIBSSH_CLIENT_TESTS}
|
||||
torture_scp)
|
||||
endif()
|
||||
|
||||
if (DEFAULT_C_NO_DEPRECATION_FLAGS)
|
||||
set_source_files_properties(torture_knownhosts.c
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS ${DEFAULT_C_NO_DEPRECATION_FLAGS})
|
||||
endif()
|
||||
|
||||
if (WITH_SFTP)
|
||||
if (WITH_BENCHMARKS)
|
||||
set(SFTP_BENCHMARK_TESTS
|
||||
|
||||
Reference in New Issue
Block a user