Mercurial > dropbear
comparison fuzz.h @ 1739:13d834efc376 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 15 Oct 2020 19:55:15 +0800 |
parents | 35af85194268 |
children | dfbe947bdf0d |
comparison
equal
deleted
inserted
replaced
1562:768ebf737aa0 | 1739:13d834efc376 |
---|---|
17 // must be called once per fuzz iteration. | 17 // must be called once per fuzz iteration. |
18 // returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE | 18 // returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE |
19 int fuzz_set_input(const uint8_t *Data, size_t Size); | 19 int fuzz_set_input(const uint8_t *Data, size_t Size); |
20 | 20 |
21 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths); | 21 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths); |
22 const void* fuzz_get_algo(const algo_type *algos, const char* name); | |
22 | 23 |
23 // fuzzer functions that intrude into general code | 24 // fuzzer functions that intrude into general code |
24 void fuzz_kex_fakealgos(void); | 25 void fuzz_kex_fakealgos(void); |
25 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, | 26 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, |
26 const char* algo, unsigned int algolen, | 27 const char* algo, unsigned int algolen, |