Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/dbutil.h Sat May 25 00:54:19 2013 +0800 +++ b/dbutil.h Fri Oct 18 21:38:01 2013 +0800 @@ -95,4 +95,7 @@ /* 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_ */