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/priv.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/priv.h')
| -rw-r--r-- | include/libssh/priv.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index a9da5a5c..bea4c343 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -95,11 +95,21 @@ struct ssh_message_struct; /* server data */ struct ssh_bind_struct { - struct error_struct error; - socket_t bindfd; - ssh_options options; - int blocking; - int toaccept; + struct error_struct error; + + ssh_callbacks callbacks; /* Callbacks to user functions */ + + /* options */ + char *wanted_methods[10]; + char *banner; + char *dsakey; + char *rsakey; + char *bindaddr; + socket_t bindfd; + unsigned int bindport; + + int blocking; + int toaccept; }; @@ -113,6 +123,8 @@ int ssh_config_parse_file(ssh_options opt, const char *filename); /* errors.c */ void ssh_set_error(void *error, int code, const char *descr, ...) PRINTF_ATTRIBUTE(3, 4); +void ssh_set_error_oom(void *); +void ssh_set_error_invalid(void *, const char *); /* in crypt.c */ uint32_t packet_decrypt_len(ssh_session session,char *crypted); @@ -124,7 +136,7 @@ int packet_hmac_verify(ssh_session session,ssh_buffer buffer,unsigned char *mac) /* connect.c */ int ssh_regex_init(void); void ssh_regex_finalize(void); -ssh_session ssh_session_new(); +ssh_session ssh_session_new(void); socket_t ssh_connect_host(ssh_session session, const char *host,const char *bind_addr, int port, long timeout, long usec); |
