From f49b576e930eb323f238785137537ae7395ecf96 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 15 Nov 2020 21:22:08 +0800 Subject: Fix fuzzing build --- fuzz.h | 6 ++++++ fuzz/fuzz-common.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fuzz.h b/fuzz.h index e48e0e6..e23444e 100644 --- a/fuzz.h +++ b/fuzz.h @@ -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); diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c index d1ada9a..f522db5 100644 --- a/fuzz/fuzz-common.c +++ b/fuzz/fuzz-common.c @@ -294,7 +294,6 @@ int fuzz_run_client(const uint8_t *Data, size_t Size, int skip_kexmaths) { // Allow to proceed sooner ses.kexstate.donefirstkex = 1; - ses.kexstate.authdone = 1; uint32_t wrapseed; genrandom((void*)&wrapseed, sizeof(wrapseed)); -- cgit v1.2.3