Mercurial > dropbear
comparison fuzz.h @ 1348:5c2899e35b63 fuzz
fuzz harness
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 13 May 2017 22:50:54 +0800 |
parents | |
children | 3677a510f545 |
comparison
equal
deleted
inserted
replaced
1347:b28624698130 | 1348:5c2899e35b63 |
---|---|
1 #ifndef DROPBEAR_FUZZ_H | |
2 #define DROPBEAR_FUZZ_H | |
3 | |
4 #include "includes.h" | |
5 #include "buffer.h" | |
6 | |
7 #ifdef DROPBEAR_FUZZ | |
8 | |
9 void svr_setup_fuzzer(void); | |
10 | |
11 struct dropbear_fuzz_options { | |
12 int fuzzing; | |
13 | |
14 // to record an unencrypted stream | |
15 FILE* recordf; | |
16 | |
17 // fuzzing input | |
18 buffer input; | |
19 | |
20 // dropbear_exit() jumps back | |
21 sigjmp_buf jmp; | |
22 | |
23 uid_t pw_uid; | |
24 gid_t pw_gid; | |
25 char* pw_name; | |
26 char* pw_dir; | |
27 char* pw_shell; | |
28 char* pw_passwd; | |
29 }; | |
30 | |
31 extern struct dropbear_fuzz_options fuzz; | |
32 | |
33 #endif | |
34 | |
35 #endif /* DROPBEAR_FUZZ_H */ |