summaryrefslogtreecommitdiffhomepage
path: root/cli-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-03 00:43:31 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-03 00:43:31 +0800
commitcbd3d5e3a535111b4cd6736d6aff432a252845d2 (patch)
treef71b44acb3546843d4d1d4343428bbff1df28e5b /cli-session.c
parent78fbed8c3eda1d7f3e0ffa41b54cd3c6ae31a0fe (diff)
Put some #ifdef options around first-follows options in case they
need to be disabled --HG-- branch : kexguess
Diffstat (limited to 'cli-session.c')
-rw-r--r--cli-session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli-session.c b/cli-session.c
index 9e64281..32b7ac7 100644
--- a/cli-session.c
+++ b/cli-session.c
@@ -110,11 +110,12 @@ void cli_session(int sock_in, int sock_out) {
}
+#ifdef USE_KEX_FIRST_FOLLOWS
static void cli_send_kex_first_guess() {
send_msg_kexdh_init();
dropbear_log(LOG_INFO, "kexdh_init guess sent");
- //cli_ses.kex_state = KEXDH_INIT_SENT;
}
+#endif
static void cli_session_init() {
@@ -155,7 +156,9 @@ static void cli_session_init() {
ses.isserver = 0;
+#ifdef USE_KEX_FIRST_FOLLOWS
ses.send_kex_first_guess = cli_send_kex_first_guess;
+#endif
}