shell_client_misc.c
Helper functions for SSH secure shell client.
SSH connection protocol.
SshConnection * sshOpenConnection(SshContext *context, Socket *socket)
Open a new SSH connection.
Definition: ssh_misc.c:66
error_t sshRegisterChannelRequestCallback(SshContext *context, SshChannelReqCallback callback, void *param)
Register channel request callback function.
Definition: ssh.c:705
error_t sshParseExitStatusParams(const uint8_t *p, size_t length, SshExitStatusParams *params)
Parse "exit-status" channel request parameters.
Definition: ssh_request.c:1708
bool_t sshCompareString(const SshString *string, const char_t *value)
Compare a binary string against the supplied value.
Definition: ssh_misc.c:1586
error_t sshInit(SshContext *context, SshConnection *connections, uint_t numConnections, SshChannel *channels, uint_t numChannels)
SSH context initialization.
Definition: ssh.c:58
SSH secure shell client.
error_t shellClientProcessEvents(ShellClientContext *context)
Process shell client events.
Definition: shell_client_misc.c:259
error_t shellClientChannelRequestCallback(SshChannel *channel, const SshString *type, const uint8_t *data, size_t length, void *param)
SSH channel request callback.
Definition: shell_client_misc.c:74
int_t socket(int_t family, int_t type, int_t protocol)
Create a socket that is bound to a specific transport service provider.
Definition: bsd_socket.c:65
error_t sshProcessConnectionEvents(SshContext *context, SshConnection *connection)
Connection event handler.
Definition: ssh_misc.c:372
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
error_t shellClientOpenConnection(ShellClientContext *context)
Open SSH connection.
Definition: shell_client_misc.c:130
error_t socketPoll(SocketEventDesc *eventDesc, uint_t size, OsEvent *extEvent, systime_t timeout)
Wait for one of a set of sockets to become ready to perform I/O.
Definition: socket.c:2149
void shellClientChangeState(ShellClientContext *context, ShellClientState newState)
Update Shell client state.
Definition: shell_client_misc.c:53
void shellClientCloseConnection(ShellClientContext *context)
Close SSH connection.
Definition: shell_client_misc.c:239
void sshRegisterConnectionEvents(SshContext *context, SshConnection *connection, SocketEventDesc *eventDesc)
Register connection events.
Definition: ssh_misc.c:280
error_t shellClientCheckTimeout(ShellClientContext *context)
Determine whether a timeout error has occurred.
Definition: shell_client_misc.c:333
SSH helper functions.
error_t sshSetOperationMode(SshContext *context, SshOperationMode mode)
Set operation mode (client or server)
Definition: ssh.c:167
Secure Shell (SSH)
error_t shellClientEstablishConnection(ShellClientContext *context)
Establish SSH connection.
Definition: shell_client_misc.c:206
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:148
Global request and channel request handling.
Debugging facilities.