summaryrefslogtreecommitdiffhomepage
path: root/fuzz.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-10-18 12:17:39 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-10-18 12:17:39 +0800
commit282fc81981c57e53b6aaa6d3189b66b4a229f0a8 (patch)
treeb11528bbd54f18273297e00487e43ec5e7f32f9a /fuzz.h
parentcc1b07dcf170890c34c43f247334dbc78d6f8647 (diff)
Get client fuzzer building and starting (fails straight away)
--HG-- branch : fuzz
Diffstat (limited to 'fuzz.h')
-rw-r--r--fuzz.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/fuzz.h b/fuzz.h
index cc98ed2..c43f9b1 100644
--- a/fuzz.h
+++ b/fuzz.h
@@ -13,6 +13,7 @@
// once per process
void fuzz_common_setup(void);
void fuzz_svr_setup(void);
+void fuzz_cli_setup(void);
// must be called once per fuzz iteration.
// returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
@@ -28,6 +29,8 @@ int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename,
const unsigned char* keyblob, unsigned int keybloblen);
extern const char * const * fuzz_signkey_names;
void fuzz_seed(void);
+
+// helpers
void fuzz_get_socket_address(int fd, char **local_host, char **local_port,
char **remote_host, char **remote_port, int host_lookup);
void fuzz_fake_send_kexdh_reply(void);
@@ -57,13 +60,6 @@ struct dropbear_fuzz_options {
// dropbear_exit() jumps back
int do_jmp;
sigjmp_buf jmp;
-
- uid_t pw_uid;
- gid_t pw_gid;
- char* pw_name;
- char* pw_dir;
- char* pw_shell;
- char* pw_passwd;
};
extern struct dropbear_fuzz_options fuzz;