summaryrefslogtreecommitdiff
path: root/src/protocol/internal/fqterm_ssh2_kex.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-11-08 14:59:15 +0800
committerIru Cai <mytbk920423@gmail.com>2016-11-08 15:17:41 +0800
commit88fed792b68835ea7805bcfed6762f0ee9496bab (patch)
treea1c1abfe0afc3759be0acedd0313bee1fcfcf4fb /src/protocol/internal/fqterm_ssh2_kex.h
parent50d144a7305c6f454a8f8f1a10ac7234eac2ceeb (diff)
downloadfqterm-88fed792b68835ea7805bcfed6762f0ee9496bab.tar.xz
better handling of errors when KEX fails, use EVP digest
Diffstat (limited to 'src/protocol/internal/fqterm_ssh2_kex.h')
-rw-r--r--src/protocol/internal/fqterm_ssh2_kex.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocol/internal/fqterm_ssh2_kex.h b/src/protocol/internal/fqterm_ssh2_kex.h
index 59e3330..0a09cc1 100644
--- a/src/protocol/internal/fqterm_ssh2_kex.h
+++ b/src/protocol/internal/fqterm_ssh2_kex.h
@@ -68,9 +68,6 @@ private:
unsigned char *session_id_;
-
-
-
bool is_first_kex_;
ssh_pubkey_t *host_key_;
@@ -80,8 +77,8 @@ private:
int server_flag_, ciphers_, auth_;
// u_char session_id_[16];
u_char session_key_[32];
-
- void negotiateAlgorithms();
+
+ bool negotiateAlgorithms();
void exchangeKey();
bool verifyKey();
void sendNewKeys();