1
1
libssh/tests/client
Anderson Toshiyuki Sasaki 5b18bcb0ac knownhosts: Use ssh_mkdirs() instead of ssh_mkdir()
Previously, if the path to known_hosts file set through
SSH_OPTIONS_KNOWNHOSTS included missing directories,
ssh_session_update_known_hosts() would fail.  The added test case checks
that this is not the case anymore.

The logic of checking if the directory is accessible before creating it
was replaced by creating the directory if opening the file failed.  This
is to minimize the risk of TOCTOU race conditions.

Fixes: T166

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-08-06 16:53:22 +02:00
..
CMakeLists.txt tests: Introduce torture_client_global_requests 2019-06-26 17:36:46 +02:00
torture_algorithms.c tests/torture_algorithms: Skip some tests in FIPS mode 2019-06-13 16:28:25 +02:00
torture_auth.c tests: Use ed25519 keys explicitly 2019-06-13 11:00:56 +02:00
torture_client_config.c tests/torture_client_config: Adjust lists in FIPS mode 2019-06-13 16:28:25 +02:00
torture_client_global_requests.c tests: Introduce torture_client_global_requests 2019-06-26 17:36:46 +02:00
torture_connect.c tests: Do not run SSHD with PAM when not needed 2019-01-09 10:14:56 +01:00
torture_forward.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_hostkey.c tests/torture_hostkey: Skip some tests in FIPS mode 2019-06-13 16:28:25 +02:00
torture_knownhosts_verify.c knownhosts: Use ssh_mkdirs() instead of ssh_mkdir() 2019-08-06 16:53:22 +02:00
torture_knownhosts.c tests: Update negative test cases to use EC instead of ED keys 2019-06-13 16:29:32 +02:00
torture_proxycommand.c tests: Reproducer for proxy command with stderr output (T130) 2019-06-19 18:01:30 +02:00
torture_rekey.c tests/torture_rekey: Replace long long with uint64_t 2019-06-14 15:22:45 +02:00
torture_request_env.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_session.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_sftp_benchmark.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_sftp_canonicalize_path.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_sftp_dir.c tests: Prefer assert_non_null() over assert_false() 2019-01-26 13:56:22 +01:00
torture_sftp_ext.c tests: Prefer assert_non_null() over assert_false() 2019-01-26 13:56:22 +01:00
torture_sftp_fsync.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00
torture_sftp_read.c tests: Allow to generate unencrypted PCAP files from testsuite 2019-01-09 10:14:56 +01:00