diff options
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index b0a165004..df1c30e7d 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -402,6 +402,11 @@ guint64 rspamd_hash_seed (void); */ gdouble rspamd_time_jitter (gdouble in, gdouble jitter); +/** + * Constant time version of memcmp + */ +gboolean rspamd_constant_memcmp (const guchar *a, const guchar *b, gsize len); + /* Special case for ancient libevent */ #if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000UL struct event_base * event_get_base (struct event *ev); |