comparison svr-kex.c @ 1456:a90fdd2d2ed8 fuzz

add fuzzer-preauth_nomaths
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jan 2018 23:05:47 +0800
parents bbc0a0ee3843
children 2f64cb3d3007
comparison
equal deleted inserted replaced
1455:4afde04f0607 1456:a90fdd2d2ed8
177 { 177 {
178 svr_ensure_hostkey(); 178 svr_ensure_hostkey();
179 } 179 }
180 #endif 180 #endif
181 181
182 #ifdef 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) {