summaryrefslogtreecommitdiff
path: root/testsuite/testutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/testutils.h')
-rw-r--r--testsuite/testutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 7cc4b1fb..c69f7e3e 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -22,6 +22,10 @@
#include "nettle-meta.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void *
xalloc(size_t size);
@@ -127,6 +131,10 @@ test_dsa_key(struct dsa_public_key *pub,
#endif /* WITH_PUBLIC_KEY */
+#ifdef __cplusplus
+}
+#endif
+
#define H2(d, s) decode_hex((d), (s))
#define H(x) decode_hex_dup(x)
#define HL(x) decode_hex_length(x), decode_hex_dup(x)