comparison common-kex.c @ 1357:08f4fa4dc6a0 fuzz

closer to working
author Matt Johnston <matt@ucc.asn.au>
date Sat, 20 May 2017 13:23:16 +0800
parents 3fdd8c5a0195
children 6b89eb92f872
comparison
equal deleted inserted replaced
1356:3677a510f545 1357:08f4fa4dc6a0
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 946 #ifdef DROPBEAR_FUZZ
947 ses.newkeys->recv.algo_crypt = &dropbear_nocipher; 947 if (fuzz.fuzzing) {
948 ses.newkeys->trans.algo_crypt = &dropbear_nocipher; 948 fuzz_kex_fakealgos();
949 ses.newkeys->recv.crypt_mode = &dropbear_mode_none; 949 }
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 950 #endif
956 951
957 /* reserved for future extensions */ 952 /* reserved for future extensions */
958 buf_getint(ses.payload); 953 buf_getint(ses.payload);
959 954