fuzz: add an always-failing dropbear_listen() replacement

This commit is contained in:
Matt Johnston
2020-12-06 21:54:01 +08:00
parent 007a5925dc
commit e12ff23e7d
3 changed files with 26 additions and 0 deletions

3
fuzz.h
View File

@@ -42,6 +42,9 @@ struct dropbear_progress_connection *fuzz_connect_remote(const char* remotehost,
connect_callback cb, void* cb_data,
const char* bind_address, const char* bind_port);
int fuzz_dropbear_listen(const char* address, const char* port,
int *socks, unsigned int sockcount, char **errstring, int *maxfd);
// helpers
void fuzz_get_socket_address(int fd, char **local_host, char **local_port,
char **remote_host, char **remote_port, int host_lookup);