mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
refactor: wrap and move server session options in a new struct
Signed-off-by: Francesco Rollo <eferollo@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Sahana Prasad
parent
6c59d975ba
commit
b4ed60024b
@@ -248,8 +248,6 @@ struct ssh_session_struct {
|
||||
char *wanted_methods[SSH_KEX_METHODS];
|
||||
char *pubkey_accepted_types;
|
||||
char *ProxyCommand;
|
||||
char *custombanner;
|
||||
char *moduli_file;
|
||||
char *agent_socket;
|
||||
unsigned long timeout; /* seconds */
|
||||
unsigned long timeout_usec;
|
||||
@@ -272,6 +270,13 @@ struct ssh_session_struct {
|
||||
int control_master;
|
||||
char *control_path;
|
||||
} opts;
|
||||
|
||||
/* server options */
|
||||
struct {
|
||||
char *custombanner;
|
||||
char *moduli_file;
|
||||
} server_opts;
|
||||
|
||||
/* counters */
|
||||
ssh_counter socket_counter;
|
||||
ssh_counter raw_counter;
|
||||
|
||||
Reference in New Issue
Block a user