diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-28 13:36:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-28 13:36:32 +0000 |
commit | 02b3c524724a65ae8b8291ee28c0eb4d4cf72516 (patch) | |
tree | ff45aeb42a48eb615fc8517d6d7ed62e891613c4 /src/libserver/dkim.h | |
parent | 605a33e6216729383d6c0adbba1215ac805dc134 (diff) | |
download | rspamd-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.h | 9 |
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 |