aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/client.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-12-10 12:04:58 +1000
committerPauli <ppzgs1@gmail.com>2021-02-23 23:24:13 +1000
commitde2ea978b5be4607c677aaefceebff39b1520e0a (patch)
tree919c1c9cc6345ee7358f9abee6eff009ad5d4e87 /fuzz/client.c
parent0a89ae97d96275994d96b560400d3fa97f752879 (diff)
downloadopenssl-de2ea978b5be4607c677aaefceebff39b1520e0a.tar.gz
RAND_METHOD deprecation: fuzzer
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13652)
Diffstat (limited to 'fuzz/client.c')
-rw-r--r--fuzz/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fuzz/client.c b/fuzz/client.c
index 2c2cd90fb8..007b0d6443 100644
--- a/fuzz/client.c
+++ b/fuzz/client.c
@@ -18,8 +18,6 @@
#include <openssl/err.h>
#include "fuzzer.h"
-#include "rand.inc"
-
/* unused, to avoid warning. */
static int idx;
@@ -42,12 +40,12 @@ int FuzzerInitialize(int *argc, char ***argv)
{
STACK_OF(SSL_COMP) *comp_methods;
+ FuzzerSetRand();
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ASYNC, NULL);
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL);
ERR_clear_error();
CRYPTO_free_ex_index(0, -1);
idx = SSL_get_ex_data_X509_STORE_CTX_idx();
- FuzzerSetRand();
comp_methods = SSL_COMP_get_compression_methods();
if (comp_methods != NULL)
sk_SSL_COMP_sort(comp_methods);
@@ -99,4 +97,5 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
void FuzzerCleanup(void)
{
+ FuzzerClearRand();
}