comparison dbutil.h @ 835:4095b6d7c9fc ecc

Merge in changes from the past couple of releases
author Matt Johnston <matt@ucc.asn.au>
date Fri, 18 Oct 2013 21:38:01 +0800
parents 7dcb46da72d9 a625f9e135a4
children 80af450dae76
comparison
equal deleted inserted replaced
807:75509065db53 835:4095b6d7c9fc
93 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} 93 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
94 94
95 /* Dropbear assertion */ 95 /* Dropbear assertion */
96 #define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0) 96 #define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0)
97 97
98 /* Returns 0 if a and b have the same contents */
99 int constant_time_memcmp(const void* a, const void *b, size_t n);
100
98 #endif /* _DBUTIL_H_ */ 101 #endif /* _DBUTIL_H_ */