1 /* mszip decompression - based on cabextract.c code from
4 * adapted for Samba by Andrew Tridgell and Stefan Metzmacher 2005
6 * (C) 2000-2001 Stuart Caie <kyzer@4u.net>
7 * reaktivate-specifics by Malte Starostik <malte@kde.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 struct decomp_state
*ZIPdecomp_state(TALLOC_CTX
*mem_ctx
);
27 #define DECR_DATAFORMAT (1)
28 #define DECR_ILLEGALDATA (2)
29 #define DECR_NOMEMORY (3)
30 #define DECR_CHECKSUM (4)
31 #define DECR_INPUT (5)
32 #define DECR_OUTPUT (6)
33 int ZIPdecompress(struct decomp_state
*decomp_state
, DATA_BLOB
*inbuf
, DATA_BLOB
*outbuf
);