ssh_request.c
SSH channel management.
error_t sshParseSignalParams(const uint8_t *p, size_t length, SshSignalParams *params)
Parse "signal" channel request parameters.
Definition: ssh_request.c:1680
SshChannel * sshGetChannel(SshConnection *connection, uint32_t localChannelNum)
Get the channel that matches the specified channel number.
Definition: ssh_channel.c:53
error_t sshParseElevationParams(const uint8_t *p, size_t length, SshElevationParams *params)
Parse "elevation" global request parameters.
Definition: ssh_request.c:1186
error_t sshParseBreakParams(const uint8_t *p, size_t length, SshBreakParams *params)
Parse "break" channel request parameters.
Definition: ssh_request.c:1733
error_t sshParseChannelFailure(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_FAILURE message.
Definition: ssh_request.c:1849
error_t sshFormatChannelRequest(SshChannel *channel, const char_t *requestType, const void *requestParams, bool_t wantReply, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_REQUEST message.
Definition: ssh_request.c:563
error_t sshParseString(const uint8_t *p, size_t length, SshString *string)
Parse a string.
Definition: ssh_misc.c:1152
error_t sshParseExitStatusParams(const uint8_t *p, size_t length, SshExitStatusParams *params)
Parse "exit-status" channel request parameters.
Definition: ssh_request.c:1708
error_t sshParseCancelTcpIpFwdParams(const uint8_t *p, size_t length, SshCancelTcpIpFwdParams *params)
Parse "cancel-tcpip-forward" global request parameters.
Definition: ssh_request.c:1143
error_t sshFormatExitStatusParams(const SshExitStatusParams *params, uint8_t *p, size_t *written)
Format "exit-status" channel request parameters.
Definition: ssh_request.c:873
error_t sshSendGlobalRequest(SshConnection *connection, const char_t *requestName, const void *requestParams, bool_t wantReply)
Send SSH_MSG_GLOBAL_REQUEST message.
Definition: ssh_request.c:55
error_t sshFormatWindowChangeParams(const SshWindowChangeParams *params, uint8_t *p, size_t *written)
Format "window-change" channel request parameters.
Definition: ssh_request.c:797
error_t sshParseRequestSuccess(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_REQUEST_SUCCESS message.
Definition: ssh_request.c:1210
error_t sshSendPacket(SshConnection *connection, uint8_t *payload, size_t payloadLen)
Send SSH packet.
Definition: ssh_packet.c:57
error_t sshParseChannelRequest(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_REQUEST message.
Definition: ssh_request.c:1280
error_t sshParseExecParams(const uint8_t *p, size_t length, SshExecParams *params)
Parse "exec" channel request parameters.
Definition: ssh_request.c:1512
error_t sshParseChannelSuccess(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_SUCCESS message.
Definition: ssh_request.c:1759
error_t sshFormatBinaryString(const void *value, size_t valueLen, uint8_t *p, size_t *written)
Format a binary string.
Definition: ssh_misc.c:1415
error_t sshFormatGlobalRequest(SshConnection *connection, const char_t *requestName, const void *requestParams, bool_t wantReply, uint8_t *p, size_t *length)
Format SSH_MSG_GLOBAL_REQUEST message.
Definition: ssh_request.c:324
error_t sshFormatChannelSuccess(SshChannel *channel, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_SUCCESS message.
Definition: ssh_request.c:925
error_t sshFormatRequestFailure(SshConnection *connection, uint8_t *p, size_t *length)
Format SSH_MSG_REQUEST_FAILURE message.
Definition: ssh_request.c:538
error_t sshSendRequestSuccess(SshConnection *connection)
Send SSH_MSG_REQUEST_SUCCESS message.
Definition: ssh_request.c:108
error_t sshFormatTcpIpFwdParams(const SshTcpIpFwdParams *params, uint8_t *p, size_t *written)
Format "tcpip-forward" global request parameters.
Definition: ssh_request.c:400
error_t sshFormatPtyReqParams(const SshPtyReqParams *params, uint8_t *p, size_t *written)
Format "pty-req" channel request parameters.
Definition: ssh_request.c:670
error_t sshFormatChannelFailure(SshChannel *channel, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_FAILURE message.
Definition: ssh_request.c:957
error_t sshFormatSubsystemParams(const SshSubsystemParams *params, uint8_t *p, size_t *written)
Format "subsystem" channel request parameters.
Definition: ssh_request.c:771
error_t sshSendChannelFailure(SshChannel *channel)
Send SSH_MSG_CHANNEL_FAILURE message.
Definition: ssh_request.c:281
error_t sshParseRequestFailure(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_REQUEST_FAILURE message.
Definition: ssh_request.c:1245
error_t sshParseWindowChangeParams(const uint8_t *p, size_t length, SshWindowChangeParams *params)
Parse "window-change" channel request parameters.
Definition: ssh_request.c:1618
error_t sshFormatElevationParams(const SshElevationParams *params, uint8_t *p, size_t *written)
Format "elevation" global request parameters.
Definition: ssh_request.c:488
error_t sshParseTcpIpFwdParams(const uint8_t *p, size_t length, SshTcpIpFwdParams *params)
Parse "tcpip-forward" global request parameters.
Definition: ssh_request.c:1098
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
error_t sshSendRequestFailure(SshConnection *connection)
Send SSH_MSG_REQUEST_FAILURE message.
Definition: ssh_request.c:142
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
error_t sshFormatRequestSuccess(SshConnection *connection, uint8_t *p, size_t *length)
Format SSH_MSG_REQUEST_SUCCESS message.
Definition: ssh_request.c:515
error_t sshParseSubsystemParams(const uint8_t *p, size_t length, SshSubsystemParams *params)
Parse "subsystem" channel request parameters.
Definition: ssh_request.c:1590
error_t sshParseGlobalRequest(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_GLOBAL_REQUEST message.
Definition: ssh_request.c:989
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 sshSendChannelSuccess(SshChannel *channel)
Send SSH_MSG_CHANNEL_SUCCESS message.
Definition: ssh_request.c:236
SSH packet encryption/decryption.
error_t sshParseBinaryString(const uint8_t *p, size_t length, SshBinaryString *string)
Parse a binary string.
Definition: ssh_misc.c:1189
error_t sshFormatString(const char_t *value, uint8_t *p, size_t *written)
Format a string.
Definition: ssh_misc.c:1384
error_t sshSendChannelRequest(SshChannel *channel, const char_t *requestType, const void *requestParams, bool_t wantReply)
Send SSH_MSG_CHANNEL_REQUEST message.
Definition: ssh_request.c:179
error_t sshFormatExecParams(const SshExecParams *params, uint8_t *p, size_t *written)
Format "exec" channel request parameters.
Definition: ssh_request.c:745
Secure Shell (SSH)
error_t sshFormatBreakParams(const SshBreakParams *params, uint8_t *p, size_t *written)
Format "break" channel request parameters.
Definition: ssh_request.c:899
error_t sshFormatCancelTcpIpFwdParams(const SshCancelTcpIpFwdParams *params, uint8_t *p, size_t *written)
Format "cancel-tcpip-forward" global request parameters.
Definition: ssh_request.c:445
Global request and channel request handling.
Debugging facilities.
bool_t sshGetExecArg(const SshExecParams *params, uint_t index, SshString *arg)
Retrieve the specified argument from an "exec" request.
Definition: ssh_request.c:1540
error_t sshFormatSignalParams(const SshSignalParams *params, uint8_t *p, size_t *written)
Format "signal" channel request parameters.
Definition: ssh_request.c:847