aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-28 13:36:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-28 13:36:32 +0000
commit02b3c524724a65ae8b8291ee28c0eb4d4cf72516 (patch)
treeff45aeb42a48eb615fc8517d6d7ed62e891613c4 /src/libserver/dkim.h
parent605a33e6216729383d6c0adbba1215ac805dc134 (diff)
downloadrspamd-02b3c524724a65ae8b8291ee28c0eb4d4cf72516.tar.gz
rspamd-02b3c524724a65ae8b8291ee28c0eb4d4cf72516.zip
[Feature] Allow to pass sign key directly from Lua
Diffstat (limited to 'src/libserver/dkim.h')
-rw-r--r--src/libserver/dkim.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libserver/dkim.h b/src/libserver/dkim.h
index b2ff151ad..ac3f04233 100644
--- a/src/libserver/dkim.h
+++ b/src/libserver/dkim.h
@@ -142,6 +142,15 @@ rspamd_dkim_sign_context_t * rspamd_create_dkim_sign_context (struct rspamd_task
rspamd_dkim_sign_key_t* rspamd_dkim_sign_key_load (const gchar *path, GError **err);
/**
+ * Load dkim key from memory chunk
+ * @param path
+ * @param err
+ * @return
+ */
+rspamd_dkim_sign_key_t* rspamd_dkim_sign_key_from_memory (const guchar *data,
+ gsize len, GError **err);
+
+/**
* Make DNS request for specified context and obtain and parse key
* @param ctx dkim context from signature
* @param resolver dns resolver object