summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-20 13:23:16 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-20 13:23:16 +0800
commitfdc6f323923b36add7ab7112b1b4d05368bd5902 (patch)
tree0eb315924b21f11431f5195cfc7e6bab2aa4b6e2 /common-kex.c
parente7cdb2ebe5982e4fd881d9ee1e472ad922237b07 (diff)
closer to working
--HG-- branch : fuzz
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/common-kex.c b/common-kex.c
index ac28fa3..5259fce 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -944,14 +944,9 @@ static void read_kex_algos() {
}
#ifdef DROPBEAR_FUZZ
- ses.newkeys->recv.algo_crypt = &dropbear_nocipher;
- ses.newkeys->trans.algo_crypt = &dropbear_nocipher;
- ses.newkeys->recv.crypt_mode = &dropbear_mode_none;
- ses.newkeys->trans.crypt_mode = &dropbear_mode_none;
- ses.newkeys->recv.algo_mac = &dropbear_nohash;
- ses.newkeys->trans.algo_mac = &dropbear_nohash;
- ses.newkeys->recv.algo_comp = DROPBEAR_COMP_NONE;
- ses.newkeys->trans.algo_comp = DROPBEAR_COMP_NONE;
+ if (fuzz.fuzzing) {
+ fuzz_kex_fakealgos();
+ }
#endif
/* reserved for future extensions */