projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a FuzzerClean() function
[openssl.git]
/
fuzz
/
asn1.c
diff --git
a/fuzz/asn1.c
b/fuzz/asn1.c
index
d3f0bb3
..
f7b5571
100644
(file)
--- a/
fuzz/asn1.c
+++ b/
fuzz/asn1.c
@@
-19,9
+19,11
@@
#include <string.h>
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#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/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>
#include <openssl/ts.h>
#include <openssl/x509v3.h>
#include <openssl/cms.h>
@@
-181,11
+183,13
@@
static ASN1_ITEM_EXP *item_type[] = {
NULL
};
NULL
};
-int FuzzerInitialize(int *argc, char ***argv) {
+int FuzzerInitialize(int *argc, char ***argv)
+{
return 1;
}
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();
int n;
ASN1_PCTX *pctx = ASN1_PCTX_new();
@@
-218,3
+222,7
@@
int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
return 0;
}
return 0;
}
+
+void FuzzerCleanup(void)
+{
+}