summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-10-18 21:38:01 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-10-18 21:38:01 +0800
commit45bd0edae52c07daa2d54ca7f7c0a57d51130791 (patch)
tree38ab731e4c38f1e287c187a9ca14ea73a92f9434 /dbutil.h
parentaafeebd0c841494e4f7315890bc97ed0daf99cbd (diff)
parent3d733a16e9ee856a45a1fbd9a1b48005d78063f9 (diff)
Merge in changes from the past couple of releases
--HG-- branch : ecc
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index e13ed13..7c7435c 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -95,4 +95,7 @@ int m_str_to_uint(const char* str, unsigned int *val);
/* Dropbear assertion */
#define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0)
+/* Returns 0 if a and b have the same contents */
+int constant_time_memcmp(const void* a, const void *b, size_t n);
+
#endif /* _DBUTIL_H_ */