changeset 1778:19cdeb3d2aac

Fix fuzzing build
author Matt Johnston <matt@ucc.asn.au>
date Sun, 15 Nov 2020 21:22:08 +0800
parents 97ad26e397a5
children 36d4c027cba7
files fuzz.h fuzz/fuzz-common.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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));