shell_server_misc.c
error_t sshParseSignalParams(const uint8_t *p, size_t length, SshSignalParams *params)
Parse "signal" channel request parameters.
Definition: ssh_request.c:1680
error_t sshParseBreakParams(const uint8_t *p, size_t length, SshBreakParams *params)
Parse "break" channel request parameters.
Definition: ssh_request.c:1733
ShellServerSession * shellServerOpenSession(ShellServerContext *context, SshChannel *channel)
Open a new shell session.
Definition: shell_server_misc.c:416
error_t shellServerGetPrevCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract previous command line from history.
Definition: shell_server_misc.c:723
ShellServerSession * shellServerFindSession(ShellServerContext *context, SshChannel *channel)
Find the shell session that matches a given SSH channel.
Definition: shell_server_misc.c:381
error_t shellServerGetLastCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract last command line from history.
Definition: shell_server_misc.c:875
bool_t sshCompareString(const SshString *string, const char_t *value)
Compare a binary string against the supplied value.
Definition: ssh_misc.c:1586
Helper functions for SSH secure shell server.
error_t sshParseExecParams(const uint8_t *p, size_t length, SshExecParams *params)
Parse "exec" channel request parameters.
Definition: ssh_request.c:1512
void shellServerCloseSession(ShellServerSession *session)
Close a shell session.
Definition: shell_server_misc.c:500
SSH secure shell server.
Pseudo-terminal emulation.
#define SHELL_SERVER_DEFAULT_TERM_HEIGHT
Definition: shell_server.h:107
#define SHELL_SERVER_DEFAULT_TERM_WIDTH
Definition: shell_server.h:100
error_t shellServerParseTermModes(ShellServerSession *session, const uint8_t *termModes, size_t length)
Parse encoded terminal modes.
Definition: shell_server_misc.c:522
error_t shellServerChannelRequestCallback(SshChannel *channel, const SshString *type, const uint8_t *data, size_t length, void *param)
SSH channel request callback.
Definition: shell_server_misc.c:67
error_t sshParseWindowChangeParams(const uint8_t *p, size_t length, SshWindowChangeParams *params)
Parse "window-change" channel request parameters.
Definition: ssh_request.c:1618
void shellServerAddCommandLine(ShellServerSession *session, const char_t *commandLine)
Add command line to history.
Definition: shell_server_misc.c:620
error_t sshParsePtyReqParams(const uint8_t *p, size_t length, SshPtyReqParams *params)
Parse "pty-req" channel request parameters.
Definition: ssh_request.c:1424
SSH helper functions.
error_t shellServerGetNextCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract next command line from history.
Definition: shell_server_misc.c:775
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
Secure Shell (SSH)
Global request and channel request handling.
error_t shellServerGetFirstCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract first command line from history.
Definition: shell_server_misc.c:833
Debugging facilities.
error_t shellServerProcessCommandLine(ShellServerSession *session, char_t *commandLine)
Command line processing.
Definition: shell_server_misc.c:588
void shellServerTick(ShellServerContext *context)
Handle periodic operations.
Definition: shell_server_misc.c:52
bool_t sshGetExecArg(const SshExecParams *params, uint_t index, SshString *arg)
Retrieve the specified argument from an "exec" request.
Definition: ssh_request.c:1540