Make the random number generator predictable when fuzzing.
[openssl.git] / fuzz / x509.c
index b2851f1e11480743fb530d7f9ab67e2b822165b7..78fef6c3ff00434626d6aa2dc2ab653e365e5c86 100644 (file)
 #include <openssl/bio.h>
 #include "fuzzer.h"
 
-int FuzzerInitialize(int *argc, char ***argv) {
+int FuzzerInitialize(int *argc, char ***argv)
+{
     return 1;
 }
 
-int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
+int FuzzerTestOneInput(const uint8_t *buf, size_t len)
+{
     const unsigned char *p = buf;
     unsigned char *der = NULL;
 
@@ -34,3 +36,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
     }
     return 0;
 }
+
+void FuzzerCleanup(void)
+{
+}