mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
add wrapfd. improve fuzzer in makefile
--HG-- branch : fuzz
This commit is contained in:
17
fuzz-wrapfd.h
Normal file
17
fuzz-wrapfd.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef FUZZ_WRAPFD_H
|
||||
#define FUZZ_WRAPFD_H
|
||||
|
||||
#include "buffer.h"
|
||||
|
||||
enum wrapfd_mode {
|
||||
UNUSED = 0,
|
||||
PLAIN,
|
||||
INPROGRESS,
|
||||
RANDOMIN,
|
||||
};
|
||||
|
||||
void wrapfd_setup(uint32_t wrapseed);
|
||||
// doesn't take ownership of buf. buf is optional.
|
||||
void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode);
|
||||
|
||||
#endif // FUZZ_WRAPFD_H
|
||||
Reference in New Issue
Block a user