diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-10-05 10:01:24 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-10-05 10:01:24 +0200 |
commit | 40778d4ba94ab5bfbe71bd3a304d6664c9a02560 (patch) | |
tree | 5864e2c4bda6c2d1782ef0ba765a40fcd8b8e8c5 /include/libssh/session.h | |
parent | a3a7f17d0f971edce873970863cfe660b21d8f57 (diff) | |
parent | 60d6954b7560df62634b305fec65dffbc98ff0b8 (diff) | |
download | libssh-40778d4ba94ab5bfbe71bd3a304d6664c9a02560.tar.gz libssh-40778d4ba94ab5bfbe71bd3a304d6664c9a02560.tar.xz libssh-40778d4ba94ab5bfbe71bd3a304d6664c9a02560.zip |
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r-- | include/libssh/session.h | 19 |
1 files changed, 18 insertions, 1 deletions
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); |