diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-28 14:53:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-28 14:53:37 +0000 |
commit | a19fbaaec3697b26cf660dcf52ff00b1c8b6c601 (patch) | |
tree | 11a1d97c88349e36af21f009357b1dc34d4c0007 /lualib/lua_util.lua | |
parent | 0e9df5d54bad1d1306145a390ccefbf9758e5fb3 (diff) | |
download | rspamd-a19fbaaec3697b26cf660dcf52ff00b1c8b6c601.tar.gz rspamd-a19fbaaec3697b26cf660dcf52ff00b1c8b6c601.zip |
[Minor] Lua_util: Add lupa.filters.pbkdf
Diffstat (limited to 'lualib/lua_util.lua')
-rw-r--r-- | lualib/lua_util.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index d32058547..7e0d7d878 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -31,11 +31,17 @@ local space = lpeg.S' \t\n\v\f\r' local nospace = 1 - space local ptrim = space^0 * lpeg.C((space^0 * nospace^1)^0) local match = lpeg.match + lupa.configure{ keep_trailing_newline = true, autoescape = false, } +lupa.filters.pbkdf = function(s) + local cr = require "rspamd_cryptobox" + return cr.pbkdf(s) +end + local function rspamd_str_split(s, sep) local gr if not sep then |