projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use constant time memcmp() when comparing packet HMACs.
[oweals/tinc.git]
/
src
/
utils.h
diff --git
a/src/utils.h
b/src/utils.h
index 2e4fcf86083154b54399b8e34773d294ca1c9fd2..7ab29d2ced15f91a706e3e1c755c8dda4c4357f7 100644
(file)
--- a/
src/utils.h
+++ b/
src/utils.h
@@
-42,4
+42,6
@@
extern const char *winerror(int);
extern unsigned int bitfield_to_int(const void *bitfield, size_t size);
+int memcmp_constant_time (const void *a, const void *b, size_t size);
+
#endif /* __TINC_UTILS_H__ */