aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 17:02:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 17:02:12 +0100
commite278006a1033db12279b70329af3ee2d2fa67c92 (patch)
treecc07f96b1872e7653b4625ff10fb1703f869207e /src/plugins
parent03792148a1147f1cada5e9d5980c9d09637817ea (diff)
downloadrspamd-e278006a1033db12279b70329af3ee2d2fa67c92.tar.gz
rspamd-e278006a1033db12279b70329af3ee2d2fa67c92.zip
[Minor] Pet luacheck
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/arc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index d5ee1b514..e940db619 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -483,12 +483,13 @@ local function arc_sign_seal(task, params, header)
sha_ctx:update(s)
lua_util.debugm(N, task, 'initial update signature with header: %s', s)
- local nl_type = 'crlf'
+ local nl_type
if task:has_flag("milter") then
nl_type = "lf"
else
nl_type = task:get_newlines_type()
end
+
local sig = rspamd_rsa.sign_memory(privkey, sha_ctx:bin())
cur_arc_seal = string.format('%s%s', cur_arc_seal,
sig:base64(70, nl_type))