1348
|
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 */ |