summaryrefslogtreecommitdiffhomepage
path: root/runopts.h
diff options
context:
space:
mode:
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/runopts.h b/runopts.h
index f7c869d..1f51b16 100644
--- a/runopts.h
+++ b/runopts.h
@@ -58,6 +58,29 @@ typedef struct runopts {
char *mac_list;
#endif
+#ifdef DROPBEAR_FUZZ
+ struct {
+ int fuzzing;
+
+ // to record an unencrypted stream
+ FILE* recordf;
+
+ // fuzzing input
+ buffer *input;
+
+ // dropbear_exit() jumps back
+ sigjmp_buf jmp;
+
+ uid_t pw_uid;
+ gid_t pw_gid;
+ char* pw_name;
+ char* pw_dir;
+ char* pw_shell;
+ char* pw_passwd;
+
+ } fuzz;
+#endif
+
} runopts;
extern runopts opts;