From 76d1ba3a7a52c7a261ff9df81af8bb13e5e07716 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Thu, 5 Jan 2017 20:18:29 +0100 Subject: [PATCH] Make client and server fuzzer reproducible Reviewed-by: Rich Salz GH: #2182 --- fuzz/client.c | 6 ++++++ fuzz/server.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/fuzz/client.c b/fuzz/client.c index d4dffd7c3a..5723e4f1ba 100644 --- a/fuzz/client.c +++ b/fuzz/client.c @@ -11,6 +11,9 @@ #include #include #include +#include +#include +#include #include #include "fuzzer.h" @@ -34,6 +37,9 @@ int FuzzerInitialize(int *argc, char ***argv) RAND_add("", 1, ENTROPY_NEEDED); RAND_status(); RSA_get_default_method(); + DSA_get_default_method(); + EC_KEY_get_default_method(); + DH_get_default_method(); comp_methods = SSL_COMP_get_compression_methods(); OPENSSL_sk_sort((OPENSSL_STACK *)comp_methods); diff --git a/fuzz/server.c b/fuzz/server.c index 9e2d28be77..e7047dbfe6 100644 --- a/fuzz/server.c +++ b/fuzz/server.c @@ -16,6 +16,9 @@ #include #include #include +#include +#include +#include #include #include "fuzzer.h" @@ -478,6 +481,9 @@ int FuzzerInitialize(int *argc, char ***argv) RAND_add("", 1, ENTROPY_NEEDED); RAND_status(); RSA_get_default_method(); + DSA_get_default_method(); + EC_KEY_get_default_method(); + DH_get_default_method(); comp_methods = SSL_COMP_get_compression_methods(); OPENSSL_sk_sort((OPENSSL_STACK *)comp_methods); -- 2.25.1