aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-09 11:20:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-09 13:51:26 +0100
commit9866dd42600ac87b638323f3f9bcec8195c3ab22 (patch)
tree93a22373933bf7b5074f9c0f64130b5aad20ea2d /src/rspamd.h
parent0625542be15f6e3a9cc6209ce544adaa2a51bc30 (diff)
downloadrspamd-9866dd42600ac87b638323f3f9bcec8195c3ab22.tar.gz
rspamd-9866dd42600ac87b638323f3f9bcec8195c3ab22.zip
[Feature] Allow to use dictionaries for compression
Diffstat (limited to 'src/rspamd.h')
-rw-r--r--src/rspamd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rspamd.h b/src/rspamd.h
index e99e4c18d..545681bf5 100644
--- a/src/rspamd.h
+++ b/src/rspamd.h
@@ -299,12 +299,20 @@ struct controller_session {
struct event_base *ev_base; /**< Event base */
};
+struct zstd_dictionary {
+ const void *dict;
+ gsize size;
+ guint id;
+};
+
struct rspamd_external_libs_ctx {
magic_t libmagic;
radix_compressed_t **local_addrs;
struct rspamd_cryptobox_library_ctx *crypto_ctx;
struct ottery_config *ottery_cfg;
SSL_CTX *ssl_ctx;
+ struct zstd_dictionary *in_dict;
+ struct zstd_dictionary *out_dict;
ref_entry_t ref;
};