summaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-08 16:23:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-08 16:23:57 +0100
commit201f4fdeb20444ccf6dd5474d596cf6227badb37 (patch)
tree38117b8950b34d4a3394848d5062f09ce2dd3059 /src/libserver/dkim.h
parent508f85e07f5725778455e5f6c7cab6646c5ce781 (diff)
downloadrspamd-201f4fdeb20444ccf6dd5474d596cf6227badb37.tar.gz
rspamd-201f4fdeb20444ccf6dd5474d596cf6227badb37.zip
[Minor] Log key id on DKIM failures
Diffstat (limited to 'src/libserver/dkim.h')
-rw-r--r--src/libserver/dkim.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/dkim.h b/src/libserver/dkim.h
index adc68403a..6245dc512 100644
--- a/src/libserver/dkim.h
+++ b/src/libserver/dkim.h
@@ -269,6 +269,13 @@ rspamd_dkim_key_t *rspamd_dkim_make_key (const gchar *keydata, guint keylen,
GError **err);
/**
+ * Returns key id for dkim key (first 7 bytes of base64 representation)
+ * @param key
+ * @return
+ */
+const gchar *rspamd_dkim_key_id (rspamd_dkim_key_t *key);
+
+/**
* Parse DKIM public key from a TXT record
* @param txt
* @param keylen