]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Relax pem signature detection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Jul 2017 07:27:18 +0000 (08:27 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 20 Jul 2017 07:27:43 +0000 (08:27 +0100)
src/plugins/dkim_check.c

index 7186002fe1fa5b102bbd90af513283e3185a2c57..7658a52dafbce46afc9d2470ddd4a34e66ddb31f 100644 (file)
@@ -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] == '/') {