bignum fuzzer: move new and free calls to the init and cleanup function.
[openssl.git] / fuzz / x509.c
index cc6ff83babe2546aabc829b3cc0741e8ff26d8c0..78fef6c3ff00434626d6aa2dc2ab653e365e5c86 100644 (file)
 #include <openssl/bio.h>
 #include "fuzzer.h"
 
-int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
+int FuzzerInitialize(int *argc, char ***argv)
+{
+    return 1;
+}
+
+int FuzzerTestOneInput(const uint8_t *buf, size_t len)
+{
     const unsigned char *p = buf;
     unsigned char *der = NULL;
 
@@ -30,3 +36,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
     }
     return 0;
 }
+
+void FuzzerCleanup(void)
+{
+}