summaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-10 16:38:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-10 16:38:43 +0100
commit952185f2b093374b878db91eafa5cbfa0777c100 (patch)
tree3f5a2aaa40edcf100b4c7b2641f369fdd0c9ed70 /src/libutil/logger.c
parentd96c3b80561784386ba83f1421f091a65a8341ab (diff)
downloadrspamd-952185f2b093374b878db91eafa5cbfa0777c100.tar.gz
rspamd-952185f2b093374b878db91eafa5cbfa0777c100.zip
[Feature] New abstract hashing API in cryptobox
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 21e489b09..f81730448 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -18,7 +18,7 @@
#include "util.h"
#include "rspamd.h"
#include "map.h"
-#include "xxhash.h"
+#include "cryptobox.h"
#include "unix-std.h"
#ifdef HAVE_SYSLOG_H
@@ -82,12 +82,6 @@ static rspamd_logger_t *default_logger = NULL;
} \
} while (0)
-#if defined(__LP64__) || defined(_LP64)
-#define XXH_ONESHOT XXH64
-#else
-#define XXH_ONESHOT XXH32
-#endif
-
static void
syslog_log_function (const gchar *log_domain, const gchar *module,
const gchar *id, const gchar *function,
@@ -106,7 +100,7 @@ static void
static inline guint64
rspamd_log_calculate_cksum (const gchar *message, size_t mlen)
{
- return XXH_ONESHOT (message, mlen, rspamd_hash_seed ());
+ return rspamd_cryptobox_fast_hash (message, mlen, rspamd_hash_seed ());
}
/*