summaryrefslogtreecommitdiffhomepage
path: root/fuzz-wrapfd.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-11-13 23:18:05 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-11-13 23:18:05 +0800
commit8ec9016585b8bfd026e408567bf246cdad6cee69 (patch)
treeb1b6c9cfc089c6f26a02107b4f61c7aed6e53332 /fuzz-wrapfd.h
parent15ea6d1106c08deafc1a16788c03155c2efff524 (diff)
Add server postauth fuzzer, wrap connect_remote()
Diffstat (limited to 'fuzz-wrapfd.h')
-rw-r--r--fuzz-wrapfd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fuzz-wrapfd.h b/fuzz-wrapfd.h
index 60c66a7..56bbc6e 100644
--- a/fuzz-wrapfd.h
+++ b/fuzz-wrapfd.h
@@ -6,12 +6,14 @@
enum wrapfd_mode {
UNUSED = 0,
COMMONBUF, // using the common buffer
+ DUMMY, // reads return fixed output, of random length
};
// buf is a common buffer read by all wrapped FDs. doesn't take ownership of buf
void wrapfd_setup(buffer *buf);
void wrapfd_setseed(uint32_t seed);
-int wrapfd_new();
+int wrapfd_new_fuzzinput();
+int wrapfd_new_dummy();
// called via #defines for read/write/select
int wrapfd_read(int fd, void *out, size_t count);