Functions | |
int | ssh_accept (SSH_SESSION *session) |
Exchange the banner and cryptographic keys. | |
SSH_SESSION * | ssh_bind_accept (SSH_BIND *ssh_bind) |
Accept an incoming ssh connection and initialize the session. | |
void | ssh_bind_fd_toaccept (SSH_BIND *ssh_bind) |
Allow the file descriptor to accept new sessions. | |
void | ssh_bind_free (SSH_BIND *ssh_bind) |
Free a ssh servers bind. | |
socket_t | ssh_bind_get_fd (SSH_BIND *ssh_bind) |
Recover the file descriptor from the session. | |
int | ssh_bind_listen (SSH_BIND *ssh_bind) |
Start listening to the socket. | |
SSH_BIND * | ssh_bind_new (void) |
Creates a new SSH server bind. | |
void | ssh_bind_set_blocking (SSH_BIND *ssh_bind, int blocking) |
Set the session to blocking/nonblocking mode. | |
void | ssh_bind_set_fd (SSH_BIND *ssh_bind, socket_t fd) |
Set the file descriptor for a session. | |
void | ssh_bind_set_options (SSH_BIND *ssh_bind, SSH_OPTIONS *options) |
Set the opitons for the current SSH server bind. |
int ssh_accept | ( | SSH_SESSION * | session | ) |
Exchange the banner and cryptographic keys.
session | The ssh session to accept a connection. |
SSH_SESSION * ssh_bind_accept | ( | SSH_BIND * | ssh_bind | ) |
Accept an incoming ssh connection and initialize the session.
ssh_bind | The ssh server bind to accept a connection. |
References privatekey_free(), ssh_new(), and ssh_options_copy().
void ssh_bind_fd_toaccept | ( | SSH_BIND * | ssh_bind | ) |
Allow the file descriptor to accept new sessions.
ssh_bind | The ssh server bind to use. |
void ssh_bind_free | ( | SSH_BIND * | ssh_bind | ) |
Free a ssh servers bind.
ssh_bind | The ssh server bind to free. |
References ssh_options_free().
socket_t ssh_bind_get_fd | ( | SSH_BIND * | ssh_bind | ) |
Recover the file descriptor from the session.
ssh_bind | The ssh server bind to get the fd from. |
int ssh_bind_listen | ( | SSH_BIND * | ssh_bind | ) |
Start listening to the socket.
ssh_bind | The ssh server bind to use. |
References ssh_init().
SSH_BIND * ssh_bind_new | ( | void | ) |
Creates a new SSH server bind.
void ssh_bind_set_blocking | ( | SSH_BIND * | ssh_bind, | |
int | blocking | |||
) |
Set the session to blocking/nonblocking mode.
ssh_bind | The ssh server bind to use. | |
blocking | Zero for nonblocking mode. |
void ssh_bind_set_fd | ( | SSH_BIND * | ssh_bind, | |
socket_t | fd | |||
) |
Set the file descriptor for a session.
ssh_bind | The ssh server bind to set the fd. | |
fd | The file descriptor. |
void ssh_bind_set_options | ( | SSH_BIND * | ssh_bind, | |
SSH_OPTIONS * | options | |||
) |
Set the opitons for the current SSH server bind.
ssh_bind | The ssh server bind to use. | |
options | The option structure to set. |