summaryrefslogtreecommitdiff
path: root/src/dbhelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbhelpers.h')
-rw-r--r--src/dbhelpers.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/dbhelpers.h b/src/dbhelpers.h
new file mode 100644
index 0000000..551bcb4
--- /dev/null
+++ b/src/dbhelpers.h
@@ -0,0 +1,21 @@
+#ifndef DROPBEAR_DBHELPERS_H_
+#define DROPBEAR_DBHELPERS_H_
+
+/* This header defines some things that are also used by libtomcrypt/math.
+ We avoid including normal include.h since that can result in conflicting
+ definitions - only include config.h */
+#include "config.h"
+
+#ifdef __GNUC__
+#define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args)))
+#define ATTRIB_NORETURN __attribute__((noreturn))
+#define ATTRIB_SENTINEL __attribute__((sentinel))
+#else
+#define ATTRIB_PRINTF(fmt,args)
+#define ATTRIB_NORETURN
+#define ATTRIB_SENTINEL
+#endif
+
+void m_burn(void* data, unsigned int len);
+
+#endif /* DROPBEAR_DBHELPERS_H_ */