diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-11-15 21:22:08 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-11-15 21:22:08 +0800 |
commit | f49b576e930eb323f238785137537ae7395ecf96 (patch) | |
tree | 8c6d5239c7e49a7f9635aa88a2385677faa23546 /fuzz.h | |
parent | 8ec9016585b8bfd026e408567bf246cdad6cee69 (diff) |
Fix fuzzing build
Diffstat (limited to 'fuzz.h')
-rw-r--r-- | fuzz.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -8,6 +8,7 @@ #include "includes.h" #include "buffer.h" #include "algo.h" +#include "netio.h" #include "fuzz-wrapfd.h" // once per process @@ -35,6 +36,11 @@ int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, extern const char * const * fuzz_signkey_names; void fuzz_seed(const unsigned char* dat, unsigned int len); +typedef void(*connect_callback)(int result, int sock, void* data, const char* errstring); +struct dropbear_progress_connection *fuzz_connect_remote(const char* remotehost, const char* remoteport, + connect_callback cb, void* cb_data, + const char* bind_address, const char* bind_port); + // helpers void fuzz_get_socket_address(int fd, char **local_host, char **local_port, char **remote_host, char **remote_port, int host_lookup); |