summaryrefslogtreecommitdiffhomepage
path: root/svr-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-01-23 23:05:47 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-01-23 23:05:47 +0800
commit89bdf3b0b9376204b039f38f8bebffa92cb30d4e (patch)
tree5a1a23f5ae301b599d1b0e9ccb23b0dcc3dbc1f4 /svr-kex.c
parent597f7eb5e921c70545d3f45e2b5e0b19867573e0 (diff)
add fuzzer-preauth_nomaths
--HG-- branch : fuzz
Diffstat (limited to 'svr-kex.c')
-rw-r--r--svr-kex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/svr-kex.c b/svr-kex.c
index 7108f64..daed9d4 100644
--- a/svr-kex.c
+++ b/svr-kex.c
@@ -179,6 +179,13 @@ static void send_msg_kexdh_reply(mp_int *dh_e, buffer *ecdh_qs) {
}
#endif
+#ifdef DROPBEAR_FUZZ
+ if (fuzz.fuzzing && fuzz.skip_kexmaths) {
+ fuzz_fake_send_kexdh_reply();
+ return;
+ }
+#endif
+
buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY);
buf_put_pub_key(ses.writepayload, svr_opts.hostkey,
ses.newkeys->algo_hostkey);