HomePhabricator

tests: Use a common function to start sshd

Authored by ansasaki on Jan 30 2020, 3:53 PM.

Description

tests: Use a common function to start sshd

In torture_reload_sshd_server(), instead of trying to use SIGHUP to
reload the configuration file, kill the original process and create a
new one with the new configuration. With this change, both
torture_setup_sshd_server() and torture_reload_sshd_server() need to
start sshd, with the only difference in the configuration setup. The
shared code to start the sshd server was moved to a new introduced
internal function torture_start_sshd_server().

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>

Details

Committed
ansasakiFeb 24 2020, 7:29 PM
Parents
rLIBSSHa9e39a41ffb5: pki: Small code cleanup in ssh_pki_signature_verify()
Branches
Unknown
Tags
Unknown