forked from qt-creator/qt-creator
SSH: Fix key re-exchange bug.
We used the encrypted client payload by mistake. The bug only manifests itself from the second key exchange on, because during the first one, no encryption is active, so the "encrypted" payload is the same as the non-encrypted one.
This commit is contained in:
@@ -86,12 +86,10 @@ SshPacketType AbstractSshPacket::type() const
|
||||
return static_cast<SshPacketType>(m_data.at(TypeOffset));
|
||||
}
|
||||
|
||||
AbstractSshPacket::Payload AbstractSshPacket::payLoad() const
|
||||
QByteArray AbstractSshPacket::payLoad() const
|
||||
{
|
||||
Payload p;
|
||||
p.data = m_data.constData() + PayloadOffset;
|
||||
p.size = length() - paddingLength() - 1;
|
||||
return p;
|
||||
return QByteArray(m_data.constData() + PayloadOffset,
|
||||
length() - paddingLength() - 1);
|
||||
}
|
||||
|
||||
void AbstractSshPacket::printRawBytes() const
|
||||
|
||||
Reference in New Issue
Block a user