From ab5b4c7cfe668ee4103de146c2a739532abfc416 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Oct 2009 14:06:41 +0200 Subject: Get rid of the options structure. --- include/libssh/session.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'include/libssh/session.h') diff --git a/include/libssh/session.h b/include/libssh/session.h index d7bbfcf2..b9f425a9 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -29,7 +29,6 @@ typedef struct ssh_kbdint_struct* ssh_kbdint; struct ssh_session_struct { struct error_struct error; struct socket *socket; - ssh_options options; char *serverbanner; char *clientbanner; int protoversion; @@ -93,6 +92,24 @@ struct ssh_session_struct { int (*ssh_message_callback)( struct ssh_session_struct *session, ssh_message msg); int log_verbosity; /*cached copy of the option structure */ int log_indent; /* indentation level in enter_function logs */ + + ssh_callbacks callbacks; /* Callbacks to user functions */ + + /* options */ + char *username; + char *host; + char *bindaddr; /* TODO: check if needed */ + char *xbanner; /* TODO: looks like it is not needed */ + char *identity; + char *sshdir; + char *knownhosts; + char *wanted_methods[10]; + unsigned long timeout; /* seconds */ + unsigned long timeout_usec; + unsigned int port; + socket_t fd; + int ssh2; + int ssh1; }; int ssh_handle_packets(ssh_session session); -- cgit