summaryrefslogtreecommitdiff
path: root/serpent.h
diff options
context:
space:
mode:
Diffstat (limited to 'serpent.h')
-rw-r--r--serpent.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/serpent.h b/serpent.h
index 4fb1d7d0..2238f45b 100644
--- a/serpent.h
+++ b/serpent.h
@@ -33,6 +33,10 @@
#include "nettle-types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Name mangling */
#define serpent_set_key nettle_serpent_set_key
#define serpent_encrypt nettle_serpent_encrypt
@@ -70,4 +74,8 @@ serpent_decrypt(struct serpent_ctx *ctx,
unsigned length, uint8_t *dst,
const uint8_t *src);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NETTLE_SERPENT_H_INCLUDED */