summaryrefslogtreecommitdiff
path: root/librpc/ndr/ndr_compression.c
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2017-05-23 11:59:59 +0200
committerJeremy Allison <jra@samba.org>2017-07-19 21:22:13 +0200
commitaa33aa6e64b3306ffb777ed690a60c5576e8514b (patch)
treee4f733b0db3bc936f3dbf00b25409f6e3a22cbfd /librpc/ndr/ndr_compression.c
parenta44bce6dfab59a6440ccc30ef0968d59b9f43fd3 (diff)
downloadsamba-aa33aa6e64b3306ffb777ed690a60c5576e8514b.tar.gz
librpc/ndr: add new ndr_compression_state
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc/ndr/ndr_compression.c')
-rw-r--r--librpc/ndr/ndr_compression.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_compression.c b/librpc/ndr/ndr_compression.c
index fd915ccaaa6..b2cb4341058 100644
--- a/librpc/ndr/ndr_compression.c
+++ b/librpc/ndr/ndr_compression.c
@@ -26,6 +26,17 @@
#include "../librpc/ndr/ndr_compression.h"
#include <zlib.h>
+struct ndr_compression_state {
+ enum ndr_compression_alg type;
+ union {
+ struct {
+ struct z_stream_s *z;
+ uint8_t *dict;
+ size_t dict_size;
+ } mszip;
+ };
+};
+
static voidpf ndr_zlib_alloc(voidpf opaque, uInt items, uInt size)
{
return talloc_zero_size(opaque, items * size);