summaryrefslogtreecommitdiffhomepage
path: root/cli-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-03-29 20:44:13 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-03-29 20:44:13 +0800
commit4f62da0f0d5da78b6c7a0cf507307aeacc8ac842 (patch)
tree388f3c01e3c97b15aa696950062e2afb2e78eea9 /cli-kex.c
parent9be0d6b53d6b85a8f273ee28876405fbca49b9fd (diff)
first_kex_packet_follows working, needs tidying
--HG-- branch : kexguess
Diffstat (limited to 'cli-kex.c')
-rw-r--r--cli-kex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli-kex.c b/cli-kex.c
index 9dadb3c..828af9a 100644
--- a/cli-kex.c
+++ b/cli-kex.c
@@ -42,7 +42,7 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen);
#define MAX_KNOWNHOSTS_LINE 4500
void send_msg_kexdh_init() {
-
+ TRACE(("send_msg_kexdh_init()"))
cli_ses.dh_e = (mp_int*)m_malloc(sizeof(mp_int));
cli_ses.dh_x = (mp_int*)m_malloc(sizeof(mp_int));
m_mp_init_multi(cli_ses.dh_e, cli_ses.dh_x, NULL);
@@ -53,7 +53,8 @@ void send_msg_kexdh_init() {
buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_INIT);
buf_putmpint(ses.writepayload, cli_ses.dh_e);
encrypt_packet();
- ses.requirenext = SSH_MSG_KEXDH_REPLY;
+ // XXX fixme
+ //ses.requirenext = SSH_MSG_KEXDH_REPLY;
}
/* Handle a diffie-hellman key exchange reply. */