changeset 1364:17104db7928c fuzz

seed_fuzz() prototype
author Matt Johnston <matt@ucc.asn.au>
date Sun, 21 May 2017 18:53:44 +0800
parents b2f295125ed6
children 9aa6cd66b51d
files dbrandom.h fuzzer-preauth.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dbrandom.h	Sun May 21 18:53:33 2017 +0800
+++ b/dbrandom.h	Sun May 21 18:53:44 2017 +0800
@@ -31,5 +31,8 @@
 void genrandom(unsigned char* buf, unsigned int len);
 void addrandom(unsigned char * buf, unsigned int len);
 void gen_random_mpint(mp_int *max, mp_int *rand);
+#ifdef DROPBEAR_FUZZ
+void seedfuzz(void);
+#endif
 
 #endif /* DROPBEAR_RANDOM_H_ */
--- a/fuzzer-preauth.c	Sun May 21 18:53:33 2017 +0800
+++ b/fuzzer-preauth.c	Sun May 21 18:53:44 2017 +0800
@@ -1,5 +1,4 @@
 #include "fuzz.h"
-#include "dbrandom.h"
 #include "session.h"
 #include "fuzz-wrapfd.h"
 #include "debug.h"