ssh_connection.c
Go to the documentation of this file.
114 TRACE_INFO("Sending SSH_MSG_CHANNEL_OPEN_CONFIRMATION message (%" PRIuSIZE " bytes)...\r\n", length);
160 TRACE_INFO("Sending SSH_MSG_CHANNEL_OPEN_FAILURE message (%" PRIuSIZE " bytes)...\r\n", length);
199 TRACE_DEBUG("Sending SSH_MSG_CHANNEL_WINDOW_ADJUST message (%" PRIuSIZE " bytes)...\r\n", length);
1182 TRACE_INFO("SSH_MSG_CHANNEL_OPEN_CONFIRMATION message received (%" PRIuSIZE " bytes)...\r\n", length);
1324 TRACE_INFO("SSH_MSG_CHANNEL_OPEN_FAILURE message received (%" PRIuSIZE " bytes)...\r\n", length);
1450 TRACE_DEBUG("SSH_MSG_CHANNEL_WINDOW_ADJUST message received (%" PRIuSIZE " bytes)...\r\n", length);
SSH channel management.
SshChannel * sshGetChannel(SshConnection *connection, uint32_t localChannelNum)
Get the channel that matches the specified channel number.
Definition: ssh_channel.c:53
error_t sshProcessChannelExtendedData(SshChannel *channel, uint32_t type, const uint8_t *data, size_t length)
Process incoming extended data.
Definition: ssh_channel.c:541
void sshUpdateChannelEvents(SshChannel *channel)
Update SSH channel related events.
Definition: ssh_channel.c:386
SSH connection protocol.
error_t sshParseChannelClose(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_CLOSE message.
Definition: ssh_connection.c:1830
error_t sshParseString(const uint8_t *p, size_t length, SshString *string)
Parse a string.
Definition: ssh_misc.c:1152
error_t sshParseChannelExtendedData(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_EXTENDED_DATA message.
Definition: ssh_connection.c:1639
error_t sshFormatForwardedTcpIpParams(const SshForwardedTcpIpParams *params, uint8_t *p, size_t *written)
Format "forwarded-tcpip" channel parameters.
Definition: ssh_connection.c:448
error_t sshFormatChannelOpen(SshChannel *channel, const char_t *channelType, const void *channelParams, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_OPEN message.
Definition: ssh_connection.c:359
error_t sshParseForwardedTcpIpParams(const uint8_t *p, size_t length, SshForwardedTcpIpParams *params)
Parse "forwarded-tcpip" channel parameters.
Definition: ssh_connection.c:1038
error_t sshSendChannelWindowAdjust(SshChannel *channel, size_t windowSizeInc)
Send SSH_MSG_CHANNEL_WINDOW_ADJUST message.
Definition: ssh_connection.c:179
error_t sshParseChannelWindowAdjust(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_WINDOW_ADJUST message.
Definition: ssh_connection.c:1436
error_t sshFormatChannelWindowAdjust(SshChannel *channel, size_t windowSizeInc, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_WINDOW_ADJUST message.
Definition: ssh_connection.c:694
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 sshSendPacket(SshConnection *connection, uint8_t *payload, size_t payloadLen)
Send SSH packet.
Definition: ssh_packet.c:57
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 sshFormatChannelOpenFailure(SshConnection *connection, uint32_t recipientChannel, uint32_t reasonCode, const char_t *description, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_OPEN_FAILURE message.
Definition: ssh_connection.c:630
error_t sshParseDirectTcpIpParams(const uint8_t *p, size_t length, SshDirectTcpIpParams *params)
Parse "direct-tcpip" channel parameters.
Definition: ssh_connection.c:1102
error_t sshSendChannelEof(SshChannel *channel)
Send SSH_MSG_CHANNEL_EOF message.
Definition: ssh_connection.c:256
error_t sshFormatChannelOpenConfirmation(SshChannel *channel, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.
Definition: ssh_connection.c:574
SshChannel * sshCreateChannel(SshConnection *connection)
Create a new SSH channel.
Definition: ssh.c:1964
error_t sshSendChannelOpenConfirmation(SshChannel *channel)
Send SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.
Definition: ssh_connection.c:94
error_t sshFormatChannelData(SshChannel *channel, size_t dataLen, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_DATA message.
Definition: ssh_connection.c:734
error_t sshParseChannelOpen(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_OPEN message.
Definition: ssh_connection.c:866
error_t sshProcessChannelData(SshChannel *channel, const uint8_t *data, size_t length)
Process incoming data.
Definition: ssh_channel.c:466
void sshNotifyEvent(SshContext *context)
Notify the SSH context that event is occurring.
Definition: ssh_misc.c:709
error_t sshFormatDirectTcpIpParams(const SshDirectTcpIpParams *params, uint8_t *p, size_t *written)
Format "direct-tcpip" channel parameters.
Definition: ssh_connection.c:509
error_t sshParseChannelOpenConfirmation(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.
Definition: ssh_connection.c:1170
error_t sshParseChannelOpenFailure(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_OPEN_FAILURE message.
Definition: ssh_connection.c:1312
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
error_t sshParseChannelEof(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_EOF message.
Definition: ssh_connection.c:1747
SSH helper functions.
error_t sshFormatChannelEof(SshChannel *channel, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_EOF message.
Definition: ssh_connection.c:804
SSH packet encryption/decryption.
error_t sshParseChannelData(SshConnection *connection, const uint8_t *message, size_t length)
Parse SSH_MSG_CHANNEL_DATA message.
Definition: ssh_connection.c:1544
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 sshSendChannelOpen(SshChannel *channel, const char_t *channelType, const void *channelParams)
Send SSH_MSG_CHANNEL_OPEN message.
Definition: ssh_connection.c:54
Secure Shell (SSH)
error_t sshSendChannelOpenFailure(SshConnection *connection, uint32_t recipientChannel, uint32_t reasonCode, const char_t *description)
Format SSH_MSG_CHANNEL_OPEN_FAILURE message.
Definition: ssh_connection.c:142
Debugging facilities.
bool_t sshCheckRemoteChannelNum(SshConnection *connection, uint32_t remoteChannelNum)
Check remote channel number.
Definition: ssh_channel.c:141
error_t sshSendChannelClose(SshChannel *channel)
Send SSH_MSG_CHANNEL_CLOSE message.
Definition: ssh_connection.c:302
error_t sshFormatChannelClose(SshChannel *channel, uint8_t *p, size_t *length)
Format SSH_MSG_CHANNEL_CLOSE message.
Definition: ssh_connection.c:835
error_t sshSendChannelData(SshChannel *channel, size_t dataLen)
Send SSH_MSG_CHANNEL_DATA message.
Definition: ssh_connection.c:218