summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-15 13:20:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-15 13:21:12 +0200
commit4787f43fe7b88ee3f3aae9e430bd59c633284e36 (patch)
treed4bdf09e3017012ba9a5dde40d6d6796b132fcc1 /devel
parent9ca06dded834e1f47e0d7fed3698a883404eb156 (diff)
downloadgnutls-4787f43fe7b88ee3f3aae9e430bd59c633284e36.tar.gz
tests: added reproducer for OCSP response found test casestmp-ocsp-status-fix
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc b/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
index 5e8657c2cc..1e7b8a0857 100644
--- a/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
+++ b/devel/fuzz/gnutls_ocsp_resp_parser_fuzzer.cc
@@ -22,8 +22,10 @@
#include <gnutls/gnutls.h>
#include <gnutls/ocsp.h>
-
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
+#ifdef __cplusplus
+extern "C"
+#endif
+int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
gnutls_datum_t raw;
gnutls_datum_t out;
gnutls_ocsp_resp_t resp;