aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
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/lua
parentd96c3b80561784386ba83f1421f091a65a8341ab (diff)
downloadrspamd-952185f2b093374b878db91eafa5cbfa0777c100.tar.gz
rspamd-952185f2b093374b878db91eafa5cbfa0777c100.zip
[Feature] New abstract hashing API in cryptobox
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 31b0aac76..7a756679b 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -23,7 +23,7 @@
#include "cfg_file.h"
#include "email_addr.h"
#include "utlist.h"
-#include "xxhash.h"
+#include "cryptobox.h"
/***
* @module rspamd_task
@@ -1568,7 +1568,8 @@ lua_task_str_to_get_type (lua_State *L, gint pos)
type = lua_tolstring (L, pos, &sz);
if (type && sz > 0) {
- h = XXH64 (type, sz, 0xdeadbabe);
+ h = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_XXHASH64,
+ type, sz, 0xdeadbabe);
switch (h) {
case 0xDA081341FB600389ULL: /* mime */