SSH: Tighter state checking during key exchange.

This will also make it easier for us to initiate a re-exchange
if we ever want to implement that.
This commit is contained in:
Christian Kandeler
2011-04-19 14:39:32 +02:00
parent 8e5797bbd4
commit cca52b6d30
2 changed files with 13 additions and 9 deletions

View File

@@ -71,8 +71,10 @@ enum SshStateInternal {
enum SshKeyExchangeState {
NoKeyExchange,
KeyExchangeStarted, // After server's KEXINIT message
KeyExchangeSuccess // After server's DH_REPLY message
KexInitSent,
DhInitSent,
NewKeysSent,
KeyExchangeSuccess // After server's DH_REPLY message
};
class SshConnectionPrivate : public QObject