comparison svr-kex.c @ 1563:1cbb7b3d6703

Merge fuzzing branch
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 22:12:05 +0800
parents 2f64cb3d3007
children d32bcb5c557d
comparison
equal deleted inserted replaced
1560:f5026f7486de 1563:1cbb7b3d6703
177 { 177 {
178 svr_ensure_hostkey(); 178 svr_ensure_hostkey();
179 } 179 }
180 #endif 180 #endif
181 181
182 #if DROPBEAR_FUZZ
183 if (fuzz.fuzzing && fuzz.skip_kexmaths) {
184 fuzz_fake_send_kexdh_reply();
185 return;
186 }
187 #endif
188
182 buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY); 189 buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY);
183 buf_put_pub_key(ses.writepayload, svr_opts.hostkey, 190 buf_put_pub_key(ses.writepayload, svr_opts.hostkey,
184 ses.newkeys->algo_hostkey); 191 ses.newkeys->algo_hostkey);
185 192
186 switch (ses.newkeys->algo_kex->mode) { 193 switch (ses.newkeys->algo_kex->mode) {