diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-23 17:02:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-23 17:02:12 +0100 |
commit | e278006a1033db12279b70329af3ee2d2fa67c92 (patch) | |
tree | cc07f96b1872e7653b4625ff10fb1703f869207e /src/plugins | |
parent | 03792148a1147f1cada5e9d5980c9d09637817ea (diff) | |
download | rspamd-e278006a1033db12279b70329af3ee2d2fa67c92.tar.gz rspamd-e278006a1033db12279b70329af3ee2d2fa67c92.zip |
[Minor] Pet luacheck
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/arc.lua | 3 |
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)) |