aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_dkim_tools.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-21 16:58:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-21 16:58:20 +0100
commitba4c9baa69a7ae1285aeadb40d48a1a9832b1ee8 (patch)
tree4d3a24c57f13f6078e3d5a6903346fbeefdf111b /lualib/lua_dkim_tools.lua
parent2972451188c08b3a741d8381a63087421d6e9a1b (diff)
downloadrspamd-ba4c9baa69a7ae1285aeadb40d48a1a9832b1ee8.tar.gz
rspamd-ba4c9baa69a7ae1285aeadb40d48a1a9832b1ee8.zip
[Minor] Unify settings checks
Diffstat (limited to 'lualib/lua_dkim_tools.lua')
-rw-r--r--lualib/lua_dkim_tools.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 5733cf81a..9e00fdfb1 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -521,4 +521,14 @@ exports.sign_using_redis = function(N, task, settings, selectors, sign_func, err
end
end
+exports.validate_signing_settings = function(settings)
+ return settings.use_redis or
+ settings.path or
+ settings.domain or
+ settings.path_map or
+ settings.selector_map or
+ settings.use_http_headers or
+ (settings.signing_table and settings.key_table)
+end
+
return exports