提交 76d1ba3a 编写于 作者: K Kurt Roeckx

Make client and server fuzzer reproducible

Reviewed-by: NRich Salz <rsalz@openssl.org>
GH: #2182
上级 13799455
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册