summaryrefslogtreecommitdiffstats
path: root/fuzz/test-corpus.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-08-11 08:22:22 -0400
committerRich Salz <rsalz@openssl.org>2017-08-11 08:23:07 -0400
commit710769f0a9ed6b758bbf7ffa217c21b47f31a8a6 (patch)
tree8e40df34c3159e28682966cbff8d1bc550aedf92 /fuzz/test-corpus.c
parent5ff5f745d125afd08820b678682e804101ca5046 (diff)
Move FuzzerSetRand to separate file.
Use an inline rand.inc; this fixes Google's OSS-Fuzz builds. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4141)
Diffstat (limited to 'fuzz/test-corpus.c')
-rw-r--r--fuzz/test-corpus.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/fuzz/test-corpus.c b/fuzz/test-corpus.c
index a876f209c9..9cef01f86d 100644
--- a/fuzz/test-corpus.c
+++ b/fuzz/test-corpus.c
@@ -18,39 +18,8 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <openssl/crypto.h>
-#include <openssl/rand.h>
#include "fuzzer.h"
-static int fuzz_bytes(unsigned char *buf, int num)
-{
- unsigned char val = 1;
-
- while (--num >= 0)
- *buf++ = val++;
- return 1;
-}
-
-static int fuzz_status(void)
-{
- return 1;
-}
-
-static RAND_METHOD fuzz_rand_method = {
- NULL,
- fuzz_bytes,
- NULL,
- NULL,
- fuzz_bytes,
- fuzz_status
-};
-
-void FuzzerSetRand(void)
-{
- RAND_set_rand_method(&fuzz_rand_method);
-}
-
-
-
int main(int argc, char **argv) {
int n;