82 Commits

Author SHA1 Message Date
Nathan Moinvaziri
2c51fa719e Clang-format style changes. 2024-11-01 16:37:57 -07:00
Thomas Gamper
83301fc2a1 mz_os.h - fix indentation; mz_os_win32.c - adjust for utf8 strings to be represented by char*; test_encoding.cc - remove useless cast 2023-06-08 11:25:14 -07:00
Thomas Gamper
0fa804504c Adjust mz_os_utf8_string_create to return char*, and mz_os_utf8_string_delete to take a char** 2023-06-08 11:25:14 -07:00
Nathan Moinvaziri
03e4d2213d Remove copyright years. 2023-02-16 13:14:21 -08:00
Nathan Moinvaziri
6005ae7fbb Fixed writing backslashes in zip on Windows.
All slashes should be written as forward slashes according
to the zip app note section 4.4.17.1.

Co-authored-by: jeremybernstein@users.noreply.github.com
2022-08-06 08:12:36 -07:00
Nathan Moinvaziri
db95894646 Updated name of project to minizip-ng. 2021-01-23 16:19:05 -08:00
Ørjan
72459e9abc mz_os: add support for midipix 2020-11-25 14:35:14 -08:00
Nathan Moinvaziri
1a7e7e4a4c Fixed issues with XZ compression when using libcompression. 2020-10-25 15:10:58 -07:00
Nathan Moinvaziri
70811ac6f5 Remove version number from headers. 2020-06-19 21:21:12 -07:00
Nathan Moinvaziri
2aa369c468 Version 2.9.3. 2020-05-21 07:31:09 -07:00
Nathan Moinvaziri
b39f7a0e89 Version 2.9.2. 2020-02-12 08:38:09 -08:00
Nathan Moinvaziri
370ab036f3 Version 2.9.1. 2019-11-15 13:24:17 -08:00
Nathan Moinvaziri
f77766b102 Fixed missing defined after #elif. #427 2019-10-19 17:30:54 -07:00
Nathan Moinvaziri
10ac291d91 Version 2.9.0. 2019-09-18 16:55:43 -07:00
Cameron Cawley
28f78ffcc2 Support building on RISC OS 2019-08-07 15:13:42 +01:00
Nathan Moinvaziri
32fd805440 Version 2.8.9. 2019-07-04 10:32:02 -07:00
Nathan Moinvaziri
fbfd4e82f7 Version 2.8.8. 2019-05-22 17:50:39 -07:00
Nathan Moinvaziri
64c4c7f868 Version 2.8.7. 2019-05-09 18:46:18 -07:00
Nathan Moinvaziri
034d7e6896 Fixed compiler error after rename. 2019-05-09 12:47:40 -07:00
Nathan Moinvaziri
7d94b1ffa1 Fixed symbolic link issues on win32. Ensure that reading a symbolic link dir on windows produces linkname with slash at the end for recreation. 2019-05-08 23:41:47 -07:00
Nathan Moinvaziri
3a941ef473 Return forward slashed path from mz_os_read_symlink on windows. 2019-05-08 19:24:09 -07:00
Nathan Moinvaziri
3249eac087 Added support for symbolic links. ZipArchive/ZipArchive#424. 2019-05-02 21:07:39 -07:00
Nathan Moinvaziri
3c438164bd Added gzip example app. 2019-04-28 09:23:56 -07:00
Nathan Moinvaziri
4fe0687243 Version 2.8.6. 2019-04-08 13:26:32 -07:00
Nathan Moinvaziri
488f20ff1b Version 2.8.5. 2019-03-17 09:38:10 -07:00
Nathan Moinvaziri
9805ab4117 Version 2.8.4. 2019-02-14 17:16:01 -08:00
Nathan Moinvaziri
2e2f995eda Version 2.8.3. 2019-01-26 16:49:48 -08:00
Nathan Moinvaziri
2ca7f3950c Version 2.8.2. 2019-01-08 16:07:10 -08:00
Nathan Moinvaziri
1ff40343b5 Version 2.8.1. 2018-12-01 09:59:19 -08:00
Nathan Moinvaziri
5cb88b8f09 Version 2.8.0. 2018-11-24 17:59:11 -08:00
Nathan Moinvaziri
76fb8903e1 Rename HAVE_AES to HAVE_WZAES to make it more clear that only the feature is enabled/disabled.
Added additional cmake unit tests.
2018-11-21 15:14:09 -08:00
Nathan Moinvaziri
b16ab566ef Change comments to C89 style.
Added _POSIX_C_SOURCE definition for necessary version of POSIX.
2018-11-20 16:56:21 -08:00
Nathan Moinvaziri
fb8a1cc220 Remove forward includes. 2018-11-19 18:01:53 -08:00
Nathan Moinvaziri
b2b082c67d Version 2.7.5. 2018-11-13 15:22:15 -08:00
Nathan Moinvaziri
c47090678d Version 2.7.4. 2018-11-06 21:12:16 -08:00
Nathan Moinvaziri
826113fd6c Version 2.7.3. 2018-11-04 12:52:58 -08:00
Nathan Moinvaziri
888e8a7324 Version 2.7.2. 2018-11-02 17:47:53 -07:00
Nathan Moinvaziri
54dffe95e9 Version 2.7.1. 2018-11-01 10:40:24 -07:00
Nathan Moinvaziri
ea5e45dfe2 Initial support for other encodings. #330 2018-10-30 13:59:17 -07:00
Nathan Moinvaziri
a221da4ae0 Version 2.7.0. 2018-10-28 16:47:53 -07:00
Nathan Moinvaziri
9fb8290289 Fixed DIR not recognized error. 2018-10-25 21:21:58 -07:00
Nathan Moinvaziri
648f596a99 Implemented crypt using OpenSSL for linux/mac.
Renamed aes folder after source author Brian Gladman.
Added SHA2 source files.
Added USE_OPENSSL option to cmake.
Changed hash that is stored in zip to SHA256.
Commented out timestamping in windows since openssl does not support out of box.
2018-10-25 19:35:50 -07:00
Nathan Moinvaziri
8cb7df741a Moved cp437 encoding function to zip class.
Removed util class and moved shared functions into mz_os.
Added USE_COMPAT to cmake which turns on/off compatibility layer.
2018-10-25 08:39:48 -07:00
Nathan Moinvaziri
5f09188ca9 Move cryptography functions to crypt source and header files.
Added pbkdf2 function to wzaes stream.
Changed wzaes stream to use os crypt functions.
2018-10-24 18:06:08 -07:00
Nathan Moinvaziri
21a3102db4 Combine os level headers.
Moved os utility functions into util class.
2018-10-24 09:50:16 -07:00
Nathan Moinvaziri
ff6f2a1db6 Version 2.6.0. 2018-10-08 23:48:58 -07:00
Nathan Moinvaziri
ca8059ef61 Version 2.5.4. 2018-09-30 10:44:16 -07:00
Nathan Moinvaziri
825bfb8fbf Version 2.5.3. 2018-09-18 20:34:01 -07:00
Viktor Szakats
e7215072a0 enable warnings for gcc/clang, misc minor fixes
* enable -W -Wall for gcc and clang
* fix strncpy() calls that may potentially leave the target buffer without
  a terminating zero byte (in mz_zip_rw.c)
* fix warnings
* remove const from mz_path_remove_filename() parameter,
  the function is writing the passed buffer
* fix pedantic warnings (in mz_strm_buf.c):
  warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
* fix spaces at EOL
* fix a redefinition warning for HAVE_ARC4RANDOM_BUF on macOS
2018-09-04 22:58:02 +00:00
Nathan Moinvaziri
351b14e512 Version 2.5.2. 2018-08-27 19:06:59 -07:00