diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-06-04 21:36:58 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-06-04 21:36:58 +0400 |
commit | 1048ad10cdfaa0d7a47e65557227579da8e4ce75 (patch) | |
tree | 5293321584c393991cf2ed52bcfe6e9a8ebabad5 /src/dkim.h | |
parent | f4d88ed701fb6e4fed7077ec63ea9688184f7c84 (diff) | |
download | rspamd-1048ad10cdfaa0d7a47e65557227579da8e4ce75.tar.gz rspamd-1048ad10cdfaa0d7a47e65557227579da8e4ce75.zip |
* Implement 'time_jitter' setting allowing to check signatures in future in case of incorrect system time (1 minute jittering by default).
Diffstat (limited to 'src/dkim.h')
-rw-r--r-- | src/dkim.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dkim.h b/src/dkim.h index 0dda5761f..f4fc21863 100644 --- a/src/dkim.h +++ b/src/dkim.h @@ -172,10 +172,11 @@ typedef void (*dkim_key_handler_f)(rspamd_dkim_key_t *key, gsize keylen, rspamd_ * Create new dkim context from signature * @param sig message's signature * @param pool pool to allocate memory from + * @param time_jitter jitter in seconds to allow time diff while checking * @param err pointer to error object * @return new context or NULL */ -rspamd_dkim_context_t* rspamd_create_dkim_context (const gchar *sig, memory_pool_t *pool, GError **err); +rspamd_dkim_context_t* rspamd_create_dkim_context (const gchar *sig, memory_pool_t *pool, guint time_jitter, GError **err); /** * Make DNS request for specified context and obtain and parse key |