summaryrefslogtreecommitdiffstats
path: root/libopkg/sha256.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/sha256.h')
-rw-r--r--libopkg/sha256.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopkg/sha256.h b/libopkg/sha256.h
index ccbe6cf..c53277d 100644
--- a/libopkg/sha256.h
+++ b/libopkg/sha256.h
@@ -22,6 +22,10 @@
# include <stdio.h>
# include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Structure to save state of computation between the single steps. */
struct sha256_ctx
{
@@ -85,4 +89,8 @@ extern int sha224_stream (FILE *stream, void *resblock);
extern void *sha256_buffer (const char *buffer, size_t len, void *resblock);
extern void *sha224_buffer (const char *buffer, size_t len, void *resblock);
+#ifdef __cplusplus
+}
+#endif
+
#endif