diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-09 11:20:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-09 13:51:26 +0100 |
commit | 9866dd42600ac87b638323f3f9bcec8195c3ab22 (patch) | |
tree | 93a22373933bf7b5074f9c0f64130b5aad20ea2d /src/libserver/cfg_rcl.c | |
parent | 0625542be15f6e3a9cc6209ce544adaa2a51bc30 (diff) | |
download | rspamd-9866dd42600ac87b638323f3f9bcec8195c3ab22.tar.gz rspamd-9866dd42600ac87b638323f3f9bcec8195c3ab22.zip |
[Feature] Allow to use dictionaries for compression
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 0cca28575..c89392207 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1974,6 +1974,19 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) G_STRUCT_OFFSET (struct rspamd_config, max_message), RSPAMD_CL_FLAG_INT_SIZE, "Maximum size of the message to be scanned"); + rspamd_rcl_add_default_handler (sub, + "zstd_input_dictionary", + rspamd_rcl_parse_struct_string, + G_STRUCT_OFFSET (struct rspamd_config, zstd_input_dictionary), + RSPAMD_CL_FLAG_STRING_PATH, + "Dictionary for zstd inbound protocol compression"); + rspamd_rcl_add_default_handler (sub, + "zstd_output_dictionary", + rspamd_rcl_parse_struct_string, + G_STRUCT_OFFSET (struct rspamd_config, zstd_output_dictionary), + RSPAMD_CL_FLAG_STRING_PATH, + "Dictionary for outbound zstd compression"); + /* New DNS configuration */ ssub = rspamd_rcl_add_section_doc (&sub->subsections, "dns", NULL, NULL, UCL_OBJECT, FALSE, TRUE, |