Make client and server fuzzer reproducible
authorKurt Roeckx <kurt@roeckx.be>
Thu, 5 Jan 2017 19:18:29 +0000 (20:18 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Fri, 6 Jan 2017 17:27:00 +0000 (18:27 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2182

fuzz/client.c
fuzz/server.c

index d4dffd7c3ae294cffe2fd9ad8cfac523bcc590d9..5723e4f1ba391e09e0c3f90ce0b5a40fae5de8f9 100644 (file)
@@ -11,6 +11,9 @@
 #include <openssl/rand.h>
 #include <openssl/ssl.h>
 #include <openssl/rsa.h>
+#include <openssl/dsa.h>
+#include <openssl/ec.h>
+#include <openssl/dh.h>
 #include <openssl/err.h>
 #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);
 
index 9e2d28be77dc2477a69925a013fc74562526674f..e7047dbfe6ba04fdb532ffaeb6d533268abe9e42 100644 (file)
@@ -16,6 +16,9 @@
 #include <openssl/rand.h>
 #include <openssl/ssl.h>
 #include <openssl/rsa.h>
+#include <openssl/dsa.h>
+#include <openssl/ec.h>
+#include <openssl/dh.h>
 #include <openssl/err.h>
 #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);