tests: Allow to modify sshd config from the test

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2018-12-11 19:09:11 +01:00
committed by Andreas Schneider
parent 7e41d08f26
commit 8012afd5e4
2 changed files with 112 additions and 19 deletions

View File

@@ -71,6 +71,8 @@ struct torture_state {
char *pcap_file;
char *srv_pidfile;
char *srv_config;
bool srv_pam;
char *srv_additional_config;
struct {
ssh_session session;
struct torture_sftp *tsftp;
@@ -124,6 +126,8 @@ void torture_setup_sshd_server(void **state, bool pam);
void torture_teardown_socket_dir(void **state);
void torture_teardown_sshd_server(void **state);
int torture_update_sshd_config(void **state, const char *config);
void torture_reset_config(ssh_session session);
/*