diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2014-11-12 16:50:04 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2014-12-15 16:15:04 +0100 |
commit | 62a83f911365eab71e7260484517ef6c739d5192 (patch) | |
tree | 383e1a9dffe1b4faca642ee06d05517c9e8488ca /src/libs/ssh/sshconnection.h | |
parent | be4a0306965aecc701b0890d5339ed7f596e7793 (diff) |
SSH: implement host key checking.
Change-Id: I5f10bd801bb5cf43e58193c41e62d9ea2f9cb645
Task-number: QTCREATORBUG-13339
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/libs/ssh/sshconnection.h')
-rw-r--r-- | src/libs/ssh/sshconnection.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/ssh/sshconnection.h b/src/libs/ssh/sshconnection.h index 31f4953990..aa5667971d 100644 --- a/src/libs/ssh/sshconnection.h +++ b/src/libs/ssh/sshconnection.h @@ -32,6 +32,7 @@ #define SSHCONNECTION_H #include "ssherrors.h" +#include "sshhostkeydatabase.h" #include "ssh_global.h" @@ -56,6 +57,13 @@ enum SshConnectionOption { Q_DECLARE_FLAGS(SshConnectionOptions, SshConnectionOption) +enum SshHostKeyCheckingMode { + SshHostKeyCheckingNone, + SshHostKeyCheckingStrict, + SshHostKeyCheckingAllowNoMatch, + SshHostKeyCheckingAllowMismatch +}; + class QSSH_EXPORT SshConnectionParameters { public: @@ -78,6 +86,8 @@ public: AuthenticationType authenticationType; quint16 port; SshConnectionOptions options; + SshHostKeyCheckingMode hostKeyCheckingMode; + SshHostKeyDatabasePtr hostKeyDatabase; }; QSSH_EXPORT bool operator==(const SshConnectionParameters &p1, const SshConnectionParameters &p2); |