|
libssh 0.4.8
|
Functions | |
| LIBSSH_API int | channel_write_stderr (ssh_channel channel, const void *data, uint32_t len) |
| Blocking write on channel for stderr. | |
| LIBSSH_API int | ssh_accept (ssh_session session) |
| Exchange the banner and cryptographic keys. | |
| LIBSSH_API int | ssh_bind_accept (ssh_bind ssh_bind_o, ssh_session session) |
| Accept an incoming ssh connection and initialize the session. | |
| LIBSSH_API void | ssh_bind_fd_toaccept (ssh_bind ssh_bind_o) |
| Allow the file descriptor to accept new sessions. | |
| LIBSSH_API void | ssh_bind_free (ssh_bind ssh_bind_o) |
| Free a ssh servers bind. | |
| LIBSSH_API socket_t | ssh_bind_get_fd (ssh_bind ssh_bind_o) |
| Recover the file descriptor from the session. | |
| LIBSSH_API int | ssh_bind_listen (ssh_bind ssh_bind_o) |
| Start listening to the socket. | |
| LIBSSH_API ssh_bind | ssh_bind_new (void) |
| Creates a new SSH server bind. | |
| LIBSSH_API int | ssh_bind_options_set (ssh_bind sshbind, enum ssh_bind_options_e type, const void *value) |
| Set the opitons for the current SSH server bind. | |
| LIBSSH_API void | ssh_bind_set_blocking (ssh_bind ssh_bind_o, int blocking) |
| Set the session to blocking/nonblocking mode. | |
| LIBSSH_API void | ssh_bind_set_fd (ssh_bind ssh_bind_o, socket_t fd) |
| Set the file descriptor for a session. | |
| LIBSSH_API void | ssh_set_message_callback (ssh_session session, int(*ssh_message_callback)(ssh_session session, ssh_message msg)) |
| defines the SSH_MESSAGE callback | |
| int channel_write_stderr | ( | ssh_channel | channel, |
| const void * | data, | ||
| uint32_t | len | ||
| ) |
Blocking write on channel for stderr.
| channel | The channel to write to. |
| data | A pointer to the data to write. |
| len | The length of the buffer to write to. |
| int ssh_accept | ( | ssh_session | session | ) |
Exchange the banner and cryptographic keys.
| session | The ssh session to accept a connection. |
| int ssh_bind_accept | ( | ssh_bind | ssh_bind_o, |
| ssh_session | session | ||
| ) |
Accept an incoming ssh connection and initialize the session.
| ssh_bind_o | The ssh server bind to accept a connection. |
| session | A preallocated ssh session |
References privatekey_free().
| void ssh_bind_fd_toaccept | ( | ssh_bind | ssh_bind_o | ) |
Allow the file descriptor to accept new sessions.
| ssh_bind_o | The ssh server bind to use. |
| void ssh_bind_free | ( | ssh_bind | ssh_bind_o | ) |
Free a ssh servers bind.
| ssh_bind_o | The ssh server bind to free. |
| socket_t ssh_bind_get_fd | ( | ssh_bind | ssh_bind_o | ) |
Recover the file descriptor from the session.
| ssh_bind_o | The ssh server bind to get the fd from. |
| int ssh_bind_listen | ( | ssh_bind | ssh_bind_o | ) |
Start listening to the socket.
| ssh_bind_o | The ssh server bind to use. |
References ssh_init().
| ssh_bind ssh_bind_new | ( | void | ) |
Creates a new SSH server bind.
| LIBSSH_API int ssh_bind_options_set | ( | ssh_bind | sshbind, |
| enum ssh_bind_options_e | type, | ||
| const void * | value | ||
| ) |
Set the opitons for the current SSH server bind.
| sshbind | The ssh server bind to use. |
| type | The option type to set. |
| value | The option value to set. |
| void ssh_bind_set_blocking | ( | ssh_bind | ssh_bind_o, |
| int | blocking | ||
| ) |
Set the session to blocking/nonblocking mode.
| ssh_bind_o | The ssh server bind to use. |
| blocking | Zero for nonblocking mode. |
| void ssh_bind_set_fd | ( | ssh_bind | ssh_bind_o, |
| socket_t | fd | ||
| ) |
Set the file descriptor for a session.
| ssh_bind_o | The ssh server bind to set the fd. |
| fd | The file descriptssh_bind B |
| void ssh_set_message_callback | ( | ssh_session | session, |
| int(*)(ssh_session session, ssh_message msg) | ssh_message_callback | ||
| ) |
defines the SSH_MESSAGE callback
| session | the current ssh session |
| ssh_message_callback | a function pointer to a callback taking the current ssh session and received message as parameters. the function returns 0 if the message has been parsed and treated sucessfuly, 1 otherwise (libssh must take care of the response). |
1.7.3