Mercurial > dropbear
comparison common-kex.c @ 1347:b28624698130 fuzz
copy over some fuzzing code from AFL branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 12 May 2017 23:14:54 +0800 |
parents | 9169e4e7cbee |
children | 3fdd8c5a0195 |
comparison
equal
deleted
inserted
replaced
1346:78b7e0634117 | 1347:b28624698130 |
---|---|
941 (struct dropbear_hash*)s2c_hash_algo->data; | 941 (struct dropbear_hash*)s2c_hash_algo->data; |
942 ses.newkeys->recv.algo_comp = c2s_comp_algo->val; | 942 ses.newkeys->recv.algo_comp = c2s_comp_algo->val; |
943 ses.newkeys->trans.algo_comp = s2c_comp_algo->val; | 943 ses.newkeys->trans.algo_comp = s2c_comp_algo->val; |
944 } | 944 } |
945 | 945 |
946 #ifdef DROPBEAR_FUZZ | |
947 ses.newkeys->recv.algo_crypt = &dropbear_nocipher; | |
948 ses.newkeys->trans.algo_crypt = &dropbear_nocipher; | |
949 ses.newkeys->recv.crypt_mode = &dropbear_mode_none; | |
950 ses.newkeys->trans.crypt_mode = &dropbear_mode_none; | |
951 ses.newkeys->recv.algo_mac = &dropbear_nohash; | |
952 ses.newkeys->trans.algo_mac = &dropbear_nohash; | |
953 ses.newkeys->recv.algo_comp = DROPBEAR_COMP_NONE; | |
954 ses.newkeys->trans.algo_comp = DROPBEAR_COMP_NONE; | |
955 #endif | |
956 | |
946 /* reserved for future extensions */ | 957 /* reserved for future extensions */ |
947 buf_getint(ses.payload); | 958 buf_getint(ses.payload); |
948 | 959 |
949 if (ses.send_kex_first_guess && allgood) { | 960 if (ses.send_kex_first_guess && allgood) { |
950 TRACE(("our_first_follows_matches 1")) | 961 TRACE(("our_first_follows_matches 1")) |