Mercurial > dropbear
view fuzz-wrapfd.h @ 1822:fa6ff07dcc77
signkey: remove !! from SHA1 digest (#130)
Remove the "!!" chars from message when printing the key-fingerprint, as it's
confusing users. They have been added when switching from MD5, but SHA1 can be
considered as standard today.
Signed-off-by: Sven Roederer <[email protected]>
author | Sven Roederer <devel-sven@geroedel.de> |
---|---|
date | Thu, 19 Aug 2021 17:39:31 +0200 |
parents | 685b47d8faf7 |
children |
line wrap: on
line source
#ifndef FUZZ_WRAPFD_H #define FUZZ_WRAPFD_H #include "includes.h" #include "buffer.h" 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_fuzzinput(void); int wrapfd_new_dummy(void); // called via #defines for read/write/select int wrapfd_read(int fd, void *out, size_t count); int wrapfd_write(int fd, const void* in, size_t count); int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); int wrapfd_close(int fd); int fuzz_kill(pid_t pid, int sig); #endif // FUZZ_WRAPFD_H