mirror of
https://github.com/openssl/openssl.git
synced 2024-12-12 03:23:59 +08:00
Make client and server fuzzer reproducible
Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #2182
This commit is contained in:
parent
13799455cb
commit
76d1ba3a7a
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user