zlib 1.2.0.6

This commit is contained in:
Mark Adler
2011-09-09 23:22:48 -07:00
parent 4b5a43a219
commit f81ba93d4a
37 changed files with 1235 additions and 551 deletions

View File

@@ -1,3 +1,7 @@
Change in 1.00: (10 sept 03)
- rename to 1.00
- cosmetic code change
Change in 0.22: (19 May 03)
- crypting support (unless you define NOCRYPT)
- append file in existing zipfile

View File

@@ -1,3 +1,31 @@
/* crypt.h -- base code for crypt/uncrypt ZIPfile
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
This code is a modified version of crypting code in Infozip distribution
The encryption/decryption parts of this source code (as opposed to the
non-echoing password parts) were originally written in Europe. The
whole source package can be freely distributed, including from the USA.
(Prior to January 2000, re-export from the US was a violation of US law.)
This encryption code is a direct transcription of the algorithm from
Roger Schlafly, described by Phil Katz in the file appnote.txt. This
file (appnote.txt) is distributed with the PKZIP program (even in the
version without encryption capabilities).
If you don't need crypting in your application, just define symbols
NOCRYPT and NOUNCRYPT.
This code support the "Traditional PKWARE Encryption".
The new AES encryption added on Zip format by Winzip (see the page
http://www.winzip.com/aes_info.htm ) and PKWare PKZip 5.x Strong
Encryption is not supported.
*/
#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))

View File

@@ -1,7 +1,7 @@
/* ioapi.c -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
*/

View File

@@ -1,7 +1,7 @@
/* ioapi.h -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
*/

View File

@@ -2,7 +2,7 @@
files using zlib + zip or unzip API
This IO API version uses the Win32 API (for Microsoft Windows)
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
*/

View File

@@ -2,7 +2,7 @@
files using zlib + zip or unzip API
This IO API version uses the Win32 API (for Microsoft Windows)
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
*/

View File

@@ -140,7 +140,7 @@ int makedir (newdir)
void do_banner()
{
printf("MiniUnz 0.22, demo of zLib + Unz package written by Gilles Vollant\n");
printf("MiniUnz 1.00, demo of zLib + Unz package written by Gilles Vollant\n");
printf("more info at http://www.winimage.com/zLibDll/unzip.html\n\n");
}

View File

@@ -120,7 +120,7 @@ int check_exist_file(filename)
void do_banner()
{
printf("MiniZip 0.22, demo of zLib + Zip package written by Gilles Vollant\n");
printf("MiniZip 1.00, demo of zLib + Zip package written by Gilles Vollant\n");
printf("more info at http://www.winimage.com/zLibDll/unzip.html\n\n");
}

View File

@@ -1,5 +1,5 @@
/* unzip.c -- IO for uncompress .zip files using zlib
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
@@ -88,7 +88,7 @@ woven in by Terry Thorsen 1/2003.
const char unz_copyright[] =
" unzip 0.22 Copyright 1998-2003 Gilles Vollant - http://www.winimage.com/zLibDll";
" unzip 1.00 Copyright 1998-2003 Gilles Vollant - http://www.winimage.com/zLibDll";
/* unz_file_info_interntal contain internal info about a file in zipfile*/
typedef struct unz_file_info_internal_s

View File

@@ -1,5 +1,5 @@
/* unzip.h -- IO for uncompress .zip files using zlib
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant

View File

@@ -1,5 +1,7 @@
/* zip.c -- IO on .zip files using zlib
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant
Read zip.h for more info
*/
@@ -75,7 +77,7 @@
#endif
#endif
const char zip_copyright[] =
" zip 0.22 Copyright 1998-2003 Gilles Vollant - http://www.winimage.com/zLibDll";
" zip 1.00 Copyright 1998-2003 Gilles Vollant - http://www.winimage.com/zLibDll";
#define SIZEDATA_INDATABLOCK (4096-(4*4))

View File

@@ -1,5 +1,5 @@
/* zip.h -- IO for compress .zip files using zlib
Version 0.22, May 19th, 2003
Version 1.00, September 10th, 2003
Copyright (C) 1998-2003 Gilles Vollant