diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-07-19 22:16:28 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-09-17 22:01:43 +0200 |
commit | 0dc57fdcf17fd9e5c000e2a07380ec6878d3afcf (patch) | |
tree | f15352f0ddd948e9e9ba1ed1c5103d3333220bef /include/libssh/session.h | |
parent | 3799670d01f4faa68b6ab8055250bc042d707b29 (diff) | |
download | libssh-0dc57fdcf17fd9e5c000e2a07380ec6878d3afcf.tar.gz libssh-0dc57fdcf17fd9e5c000e2a07380ec6878d3afcf.tar.xz libssh-0dc57fdcf17fd9e5c000e2a07380ec6878d3afcf.zip |
Fixes the ssh_log issue on ssh_bind handles.
(cherry picked from commit da954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9)
Conflicts:
src/keyfiles.c
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r-- | include/libssh/session.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h index 1d571f68..fb35cdbd 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -61,8 +61,16 @@ enum ssh_pending_call_e { /* libssh calls may block an undefined amount of time */ #define SSH_SESSION_FLAG_BLOCKING 1 -struct ssh_session_struct { +/* members that are common to ssh_session and ssh_bind */ +struct ssh_common_struct { struct error_struct error; + ssh_callbacks callbacks; /* Callbacks to user functions */ + int log_verbosity; /* verbosity of the log functions */ + int log_indent; /* indentation level in enter_function logs */ +}; + +struct ssh_session_struct { + struct ssh_common_struct common; struct ssh_socket_struct *socket; char *serverbanner; char *clientbanner; @@ -128,11 +136,8 @@ struct ssh_session_struct { struct ssh_list *ssh_message_list; /* list of delayed SSH messages */ int (*ssh_message_callback)( struct ssh_session_struct *session, ssh_message msg, void *userdata); void *ssh_message_callback_data; - int log_verbosity; /*cached copy of the option structure */ - int log_indent; /* indentation level in enter_function logs */ void (*ssh_connection_callback)( struct ssh_session_struct *session); - ssh_callbacks callbacks; /* Callbacks to user functions */ struct ssh_packet_callbacks_struct default_packet_callbacks; struct ssh_list *packet_callbacks; struct ssh_socket_callbacks_struct socket_callbacks; |