Mercurial > dropbear
comparison fuzz-wrapfd.h @ 1356:3677a510f545 fuzz
add wrapfd. improve fuzzer in makefile
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 19 May 2017 00:48:46 +0800 |
parents | |
children | 08f4fa4dc6a0 |
comparison
equal
deleted
inserted
replaced
1355:3fdd8c5a0195 | 1356:3677a510f545 |
---|---|
1 #ifndef FUZZ_WRAPFD_H | |
2 #define FUZZ_WRAPFD_H | |
3 | |
4 #include "buffer.h" | |
5 | |
6 enum wrapfd_mode { | |
7 UNUSED = 0, | |
8 PLAIN, | |
9 INPROGRESS, | |
10 RANDOMIN, | |
11 }; | |
12 | |
13 void wrapfd_setup(uint32_t wrapseed); | |
14 // doesn't take ownership of buf. buf is optional. | |
15 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); | |
16 | |
17 #endif // FUZZ_WRAPFD_H |