aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-20 08:27:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-20 08:27:43 +0100
commit43e6c87d4fd16d3662949278e427b7d8723a4f4f (patch)
tree861d5c0346e843b7e8c5cebe5cd756b49173160e /src/plugins
parent1acd6ea6b7ed0f343fcbadeb802ecc6af2407c1e (diff)
downloadrspamd-43e6c87d4fd16d3662949278e427b7d8723a4f4f.tar.gz
rspamd-43e6c87d4fd16d3662949278e427b7d8723a4f4f.zip
[Fix] Relax pem signature detection
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dkim_check.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 7186002fe..7658a52da 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -581,8 +581,7 @@ dkim_module_load_key_format (lua_State *L, struct rspamd_task *task,
ret = rspamd_dkim_sign_key_load (key, keylen, kt, &err);
if (ret == NULL) {
- msg_err_task ("cannot load dkim key %s: %e",
- key, err);
+ msg_err_task ("cannot load dkim key: %e", err);
g_error_free (err);
return NULL;
@@ -643,7 +642,7 @@ lua_dkim_sign_handler (lua_State *L)
(GDestroyNotify)rspamd_dkim_sign_key_unref);
}
-#define PEM_SIG "-----BEGIN PRIVATE KEY-----"
+#define PEM_SIG "-----BEGIN"
if (key) {
if (key[0] == '.' || key[0] == '/') {