comparison fuzz.h @ 1383:f03cfe9c76ac fuzz

Disable setnonblocking(), get_socket_address(), set_sock_priority() for fuzzing
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 May 2017 22:10:51 +0800
parents d4cc85e6c569
children 6c92e97553f1
comparison
equal deleted inserted replaced
1382:4b864fd12b22 1383:f03cfe9c76ac
22 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, 22 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename,
23 const char* algo, unsigned int algolen, 23 const char* algo, unsigned int algolen,
24 const unsigned char* keyblob, unsigned int keybloblen); 24 const unsigned char* keyblob, unsigned int keybloblen);
25 extern const char * const * fuzz_signkey_names; 25 extern const char * const * fuzz_signkey_names;
26 void fuzz_seed(void); 26 void fuzz_seed(void);
27 void fuzz_get_socket_address(int fd, char **local_host, char **local_port,
28 char **remote_host, char **remote_port, int host_lookup);
27 29
28 // fake IO wrappers 30 // fake IO wrappers
29 #ifndef FUZZ_SKIP_WRAP 31 #ifndef FUZZ_SKIP_WRAP
30 #define select(nfds, readfds, writefds, exceptfds, timeout) \ 32 #define select(nfds, readfds, writefds, exceptfds, timeout) \
31 wrapfd_select(nfds, readfds, writefds, exceptfds, timeout) 33 wrapfd_select(nfds, readfds, writefds, exceptfds, timeout)