diff options
author | Pauli <paul.dale@oracle.com> | 2020-12-10 03:04:58 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-23 14:24:13 +0100 |
commit | de2ea978b5be4607c677aaefceebff39b1520e0a (patch) | |
tree | 919c1c9cc6345ee7358f9abee6eff009ad5d4e87 /fuzz/x509.c | |
parent | RAND_METHOD deprecation: tests (diff) | |
download | openssl-de2ea978b5be4607c677aaefceebff39b1520e0a.tar.xz openssl-de2ea978b5be4607c677aaefceebff39b1520e0a.zip |
RAND_METHOD deprecation: fuzzer
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13652)
Diffstat (limited to 'fuzz/x509.c')
-rw-r--r-- | fuzz/x509.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fuzz/x509.c b/fuzz/x509.c index dd9075acd7..78061d176a 100644 --- a/fuzz/x509.c +++ b/fuzz/x509.c @@ -14,14 +14,12 @@ #include <openssl/rand.h> #include "fuzzer.h" -#include "rand.inc" - int FuzzerInitialize(int *argc, char ***argv) { + FuzzerSetRand(); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); ERR_clear_error(); CRYPTO_free_ex_index(0, -1); - FuzzerSetRand(); return 1; } @@ -50,4 +48,5 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) void FuzzerCleanup(void) { + FuzzerClearRand(); } |