X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=fuzz%2Fconf.c;h=87fe857099b8482beaab2eafbb2d6c28c24a2651;hp=49edb3eaa6937347ca99e70bb134aeaca7cc3763;hb=13799455cb96ac22a14287d797acf45c6d752654;hpb=f3e911d5ed16db6a129306675e20e51d1ee81e1a diff --git a/fuzz/conf.c b/fuzz/conf.c index 49edb3eaa6..87fe857099 100644 --- a/fuzz/conf.c +++ b/fuzz/conf.c @@ -13,10 +13,13 @@ */ #include +#include #include "fuzzer.h" int FuzzerInitialize(int *argc, char ***argv) { + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); + ERR_get_state(); return 1; } @@ -35,6 +38,11 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) NCONF_load_bio(conf, in, &eline); NCONF_free(conf); BIO_free(in); + ERR_clear_error(); return 0; } + +void FuzzerCleanup(void) +{ +}