summaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.h
diff options
context:
space:
mode:
authorJohn McKay <adenosine3p@gmail.com>2019-01-24 01:26:21 +0000
committerJohn McKay <adenosine3p@gmail.com>2019-02-02 05:41:41 +0000
commit875f80ee9aa1ff58463f32864ec5fcd57558b0a5 (patch)
tree9863ff43e6a10a08c31053690cfe00efe9d40c2b /src/libserver/dkim.h
parent04b5bfde88920f472516ebae5172b232e7ca37a0 (diff)
downloadrspamd-875f80ee9aa1ff58463f32864ec5fcd57558b0a5.tar.gz
rspamd-875f80ee9aa1ff58463f32864ec5fcd57558b0a5.zip
Refactor dkim private key loads
Diffstat (limited to 'src/libserver/dkim.h')
-rw-r--r--src/libserver/dkim.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libserver/dkim.h b/src/libserver/dkim.h
index 46953a21c..d57c923bb 100644
--- a/src/libserver/dkim.h
+++ b/src/libserver/dkim.h
@@ -102,16 +102,17 @@ typedef struct rspamd_dkim_sign_context_s rspamd_dkim_sign_context_t;
struct rspamd_dkim_key_s;
typedef struct rspamd_dkim_key_s rspamd_dkim_key_t;
-struct rspamd_dkim_sign_key_s;
-typedef struct rspamd_dkim_sign_key_s rspamd_dkim_sign_key_t;
+struct rspamd_dkim_key_s;
+typedef struct rspamd_dkim_key_s rspamd_dkim_sign_key_t;
struct rspamd_task;
-enum rspamd_dkim_sign_key_type {
- RSPAMD_DKIM_SIGN_KEY_FILE = 0,
- RSPAMD_DKIM_SIGN_KEY_PEM,
- RSPAMD_DKIM_SIGN_KEY_BASE64,
- RSPAMD_DKIM_SIGN_KEY_DER
+enum rspamd_dkim_key_format {
+ RSPAMD_DKIM_KEY_FILE = 0,
+ RSPAMD_DKIM_KEY_PEM,
+ RSPAMD_DKIM_KEY_BASE64,
+ RSPAMD_DKIM_KEY_RAW,
+ RSPAMD_DKIM_KEY_UNKNOWN
};
enum rspamd_dkim_type {
@@ -188,17 +189,16 @@ rspamd_dkim_sign_context_t * rspamd_create_dkim_sign_context (struct rspamd_task
* @return
*/
rspamd_dkim_sign_key_t* rspamd_dkim_sign_key_load (const gchar *what, gsize len,
- enum rspamd_dkim_sign_key_type type,
+ enum rspamd_dkim_key_format type,
GError **err);
/**
* Invalidate modified sign key
* @param key
* @return
- */
+*/
gboolean rspamd_dkim_sign_key_maybe_invalidate (rspamd_dkim_sign_key_t *key,
- enum rspamd_dkim_sign_key_type type,
- const gchar *what, gsize len);
+ time_t mtime);
/**
* Make DNS request for specified context and obtain and parse key