diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-15 15:12:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-15 15:12:40 +0000 |
commit | 4f3a539f03893f0ddff60ff2b529a8fb1d22fab6 (patch) | |
tree | d72db8639199565a6c4b492fb7cce88745c5ec9e /src/libserver/cfg_utils.c | |
parent | 4b6905c2a2585eaf83cb0d9a7e34d73622add7d3 (diff) | |
download | rspamd-4f3a539f03893f0ddff60ff2b529a8fb1d22fab6.tar.gz rspamd-4f3a539f03893f0ddff60ff2b529a8fb1d22fab6.zip |
Add global trusted keys option
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 5bd4c0668..1b924859f 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -128,6 +128,8 @@ rspamd_config_new (void) cfg->debug_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->explicit_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->wrk_parsers = g_hash_table_new (g_int_hash, g_int_equal); + cfg->trusted_keys = g_hash_table_new (rspamd_str_hash, + rspamd_str_equal); cfg->map_timeout = DEFAULT_MAP_TIMEOUT; @@ -182,6 +184,7 @@ rspamd_config_free (struct rspamd_config *cfg) g_hash_table_unref (cfg->debug_modules); g_hash_table_unref (cfg->explicit_modules); g_hash_table_unref (cfg->wrk_parsers); + g_hash_table_unref (cfg->trusted_keys); if (cfg->checksum) { g_free (cfg->checksum); |