diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-09 12:39:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-09 13:51:26 +0100 |
commit | 9a1b912929527accc88b9bdb48c63a5855f64c36 (patch) | |
tree | f7e3002a1bab1bb54ac3cd0f1db715fe585b1f8a /src/rspamd.h | |
parent | 448c39791528275606f5c5350f6298de06a18462 (diff) | |
download | rspamd-9a1b912929527accc88b9bdb48c63a5855f64c36.tar.gz rspamd-9a1b912929527accc88b9bdb48c63a5855f64c36.zip |
[Feature] Preserve decompression context between tasks
Diffstat (limited to 'src/rspamd.h')
-rw-r--r-- | src/rspamd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rspamd.h b/src/rspamd.h index 545681bf5..bb39f3819 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -300,11 +300,15 @@ struct controller_session { }; struct zstd_dictionary { - const void *dict; + void *dict; gsize size; guint id; }; + +struct ZSTD_CStream_s; +struct ZSTD_DStream_s; + struct rspamd_external_libs_ctx { magic_t libmagic; radix_compressed_t **local_addrs; @@ -313,6 +317,8 @@ struct rspamd_external_libs_ctx { SSL_CTX *ssl_ctx; struct zstd_dictionary *in_dict; struct zstd_dictionary *out_dict; + struct ZSTD_CStream_s *out_zstream; + struct ZSTD_DStream_s *in_zstream; ref_entry_t ref; }; |