Add a FuzzerClean() function
[openssl.git] / fuzz / asn1.c
index d3f0bb36b399152d299868961bcb7b15269a2042..f7b5571d4f7d2d3e21352232b2dc32332c38fe20 100644 (file)
 #include <string.h>
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
+#include <openssl/dh.h>
 #include <openssl/ec.h>
 #include <openssl/ocsp.h>
 #include <openssl/pkcs12.h>
+#include <openssl/rsa.h>
 #include <openssl/ts.h>
 #include <openssl/x509v3.h>
 #include <openssl/cms.h>
@@ -181,11 +183,13 @@ static ASN1_ITEM_EXP *item_type[] = {
     NULL
 };
 
-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)
+{
     int n;
 
     ASN1_PCTX *pctx = ASN1_PCTX_new();
@@ -218,3 +222,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
 
     return 0;
 }
+
+void FuzzerCleanup(void)
+{
+}