# HG changeset patch # User Matt Johnston # Date 1605446528 -28800 # Node ID 19cdeb3d2aac791706bfec55d795de4932c12a98 # Parent 97ad26e397a5a3f08eba459455b3e4ae56e6d526 Fix fuzzing build diff -r 97ad26e397a5 -r 19cdeb3d2aac fuzz.h --- a/fuzz.h Fri Nov 13 23:18:05 2020 +0800 +++ b/fuzz.h Sun Nov 15 21:22:08 2020 +0800 @@ -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 @@ 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); diff -r 97ad26e397a5 -r 19cdeb3d2aac fuzz/fuzz-common.c --- a/fuzz/fuzz-common.c Fri Nov 13 23:18:05 2020 +0800 +++ b/fuzz/fuzz-common.c Sun Nov 15 21:22:08 2020 +0800 @@ -294,7 +294,6 @@ // Allow to proceed sooner ses.kexstate.donefirstkex = 1; - ses.kexstate.authdone = 1; uint32_t wrapseed; genrandom((void*)&wrapseed, sizeof(wrapseed));