comparison cli-session.c @ 746:465fefc4f6e0 kexguess

Put some #ifdef options around first-follows options in case they need to be disabled
author Matt Johnston <matt@ucc.asn.au>
date Wed, 03 Apr 2013 00:43:31 +0800
parents 15999b098cc9
children 077bbe1eb220
comparison
equal deleted inserted replaced
745:15999b098cc9 746:465fefc4f6e0
108 108
109 /* Not reached */ 109 /* Not reached */
110 110
111 } 111 }
112 112
113 #ifdef USE_KEX_FIRST_FOLLOWS
113 static void cli_send_kex_first_guess() { 114 static void cli_send_kex_first_guess() {
114 send_msg_kexdh_init(); 115 send_msg_kexdh_init();
115 dropbear_log(LOG_INFO, "kexdh_init guess sent"); 116 dropbear_log(LOG_INFO, "kexdh_init guess sent");
116 //cli_ses.kex_state = KEXDH_INIT_SENT; 117 }
117 } 118 #endif
118 119
119 static void cli_session_init() { 120 static void cli_session_init() {
120 121
121 cli_ses.state = STATE_NOTHING; 122 cli_ses.state = STATE_NOTHING;
122 cli_ses.kex_state = KEX_NOTHING; 123 cli_ses.kex_state = KEX_NOTHING;
153 /* packet handlers */ 154 /* packet handlers */
154 ses.packettypes = cli_packettypes; 155 ses.packettypes = cli_packettypes;
155 156
156 ses.isserver = 0; 157 ses.isserver = 0;
157 158
159 #ifdef USE_KEX_FIRST_FOLLOWS
158 ses.send_kex_first_guess = cli_send_kex_first_guess; 160 ses.send_kex_first_guess = cli_send_kex_first_guess;
161 #endif
159 162
160 } 163 }
161 164
162 static void send_msg_service_request(char* servicename) { 165 static void send_msg_service_request(char* servicename) {
163 166