aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-11-01 12:13:17 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-11-06 16:22:04 +0000
commitc7b30a2eb22d6cf761e1ef8f1d3f0a5596099635 (patch)
treebdedf981e1e05cc922a35eb218e242efa95d3564 /src/libs/ssh
parent2e10f5b828f61c1e18186d42f6e8f76634365eec (diff)
SSH: Remove nonsensical check
There is no minimum requirement for the per-channel maximum packet size. Change-Id: Iced6e3bb1b77f7642d39d4a113ab4236af6b247b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/libs/ssh')
-rw-r--r--src/libs/ssh/sshchannel.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libs/ssh/sshchannel.cpp b/src/libs/ssh/sshchannel.cpp
index 5a3d5e4d42f..a1a15bf0a7a 100644
--- a/src/libs/ssh/sshchannel.cpp
+++ b/src/libs/ssh/sshchannel.cpp
@@ -34,10 +34,6 @@
namespace QSsh {
namespace Internal {
-// "Payload length" (RFC 4253, 6.1), i.e. minus packet type, channel number
-// and length field for string.
-const quint32 MinMaxPacketSize = 32768 - sizeof(quint32) - sizeof(quint32) - 1;
-
const quint32 NoChannel = 0xffffffffu;
AbstractSshChannel::AbstractSshChannel(quint32 channelId,
@@ -143,11 +139,6 @@ void AbstractSshChannel::handleOpenSuccess(quint32 remoteChannelId,
m_timeoutTimer.stop();
- if (remoteMaxPacketSize < MinMaxPacketSize) {
- throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR,
- "Maximum packet size too low.");
- }
-
qCDebug(sshLog, "Channel opened. remote channel id: %u, remote window size: %u, "
"remote max packet size: %u",
remoteChannelId, remoteWindowSize, remoteMaxPacketSize);