Add a FuzzerClean() function
[openssl.git] / fuzz / asn1parse.c
index 63104fb7d09d41dd8caae5dbb5c1e4cc40aee07d..edb4d023030273f199208a4645a4c832b38e0a11 100644 (file)
 #include <openssl/x509v3.h>
 #include "fuzzer.h"
 
-int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
+int FuzzerInitialize(int *argc, char ***argv)
+{
+    return 1;
+}
+
+int FuzzerTestOneInput(const uint8_t *buf, size_t len)
+{
     static BIO *bio_out;
 
     if (bio_out == NULL)
@@ -27,3 +33,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
     (void)ASN1_parse_dump(bio_out, buf, len, 0, 0);
     return 0;
 }
+
+void FuzzerCleanup(void)
+{
+}