Commit Graph

96 Commits

Author SHA1 Message Date
Nathan Moinvaziri
1d6d183af6 Fixed more compiler warnings. 2018-11-10 09:03:55 -08:00
Nathan Moinvaziri
95fec96e05 Fixed compiler warning. 2018-11-08 19:29:42 -08:00
Nathan Moinvaziri
3c7568fa67 Silence compiler warnings. 2018-11-08 19:14:35 -08:00
Nathan Moinvaziri
d4d49df0b1 Fixed compiler warnings. 2018-11-08 18:12:51 -08:00
Nathan Moinvaziri
effc1428ff Remove inttypes.h. 2018-11-08 15:24:17 -08:00
Nathan Moinvaziri
b08bd9a3fa Fixed bugs in seeking forward and back and add unit tests. 2018-11-08 14:52:52 -08:00
Nathan Moinvaziri
cdef32b909 Notify user when feature not supported. 2018-11-04 10:21:27 -08:00
Nathan Moinvaziri
1b87a5a358 Removed old crc32 streams. 2018-11-03 19:47:20 -07:00
Nathan Moinvaziri
e63d231fa5 Moved crc hashing and pbkdf2 to crypt.
Provide backup crc32 function if zlib or lzma not used.
Fixed check for no signing in minizip.
2018-11-03 19:45:41 -07:00
Nathan Moinvaziri
eff49b88ce Remove unused set_algorithm function for aes.
Better setting of errors in crypt functions.
Fixed win32 aes key generated incorrectly.
Fixed openssl aes key bits not being set correctly.
Added option to for using BRG library on windows.
Changed low quality entropy error to warning.
2018-11-01 10:32:42 -07:00
Nathan Moinvaziri
f79ec42ad3 Fixed hmac implementation in brg library. #334
Moved brg setup in cmake.
2018-10-31 18:25:53 -07:00
Nathan Moinvaziri
80b56a8a5a Added self-signed certificate signing test. 2018-10-28 15:30:59 -07:00
Nathan Moinvaziri
dd31249b5a Change sys.exit to exit. 2018-10-27 18:21:56 -07:00
Nathan Moinvaziri
cce11ba090 Run tests for disk splitting.
Added tests for zipping cd.
Changed show progress option to verbose.
2018-10-27 08:31:01 -07:00
Nathan Moinvaziri
e464430433 Fixed windows build dir. 2018-10-26 23:39:58 -07:00
Nathan Moinvaziri
f5b7ed7bfe Make split disk tests to their own flag. 2018-10-26 23:21:38 -07:00
Nathan Moinvaziri
72a099dae1 Fixed paths on windows test script. 2018-10-26 23:15:25 -07:00
Nathan Moinvaziri
fea1232fa6 Make random file tests conditional. 2018-10-26 20:40:03 -07:00
Nathan Moinvaziri
3c000cf5fb Added python tests back in to travis ci. 2018-10-26 20:20:56 -07:00
Nathan Moinvaziri
8cc0800876 Added ability to compile zlib with external project.
Fixed problem compiling with no encryption on linux.
2018-10-25 23:25:01 -07:00
Nathan Moinvaziri
6bde034147 Fixed compiler warnings. 2018-10-25 22:05:13 -07:00
Nathan Moinvaziri
c714ef60a4 Fixed more compiler warnings. 2018-10-25 22:01:02 -07:00
Nathan Moinvaziri
f97c9f48b2 Fixed compiler warnings.
Fixed brg not compiling into project.
2018-10-25 21:50:15 -07:00
Nathan Moinvaziri
d2dc11ca57 Fixed compiler errors and warnings. 2018-10-25 21:36:35 -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
a5e06a7bcf Added test functions for windows crypto. 2018-10-24 09:21:49 -07:00
Nathan Moinvaziri
9117655893 Updated test.c to latest version of minizip lib. #314 2018-09-17 07:42:27 -07:00
Nathan Moinvaziri
74a6a21e56 Remove buffered test since that param is no longer optional. 2018-08-18 08:41:49 -07:00
Nathan Moinvaziri
e3958d9b46 Rename file. 2018-07-09 07:54:26 -07:00
Nathan Moinvaziri
957e5f92e4 Added 0 byte file for testing. 2018-07-09 07:53:54 -07:00
Nathan Moinvaziri
957f2e9976 Fixed issues with resolving paths.
Added source directory to includes.
Added unit tests for resolving paths.
Fixed compilation issues with test code.
2018-06-19 09:44:06 -07:00
Nathan Moinvaziri
02123b82d5 Fixed bugs in buffered stream. #216
Added buffered stream support to minizip app.
Added unit tests for buffered io.
2018-01-02 09:22:38 -08:00
David Korth
819d0d56f0 test.c: Use "%u" for printing uint32_t, not "%d".
Found using cppcheck-1.81.
2017-11-11 08:16:32 -05:00
Nathan Moinvaziri
fdc695be86 Added zip memory test. 2017-10-26 10:21:21 -07:00
Nathan Moinvaziri
79ac3385f1 Fixed appending zip to executable and added unit test.
Renamed MZ_STREAM_OPEN_* to MZ_OPEN_MODE_*.
Renamed MZ_STREAM_SEEK_* to MZ_SEEK_*.
2017-10-23 17:22:36 -07:00
Nathan Moinvaziri
a66cc31fac Merged miniunz into minizip.
Renamed passthru stream to raw stream.
Removed zlib extra compression parameters, so now all streams have the same basic parameter, which is compression level. And so got rid of mz_zip_compress and mz_zip_crypt structures.
Fixed issues using the disk splitting stream when the disk size was 0.
Changed return value of mz_file_exists to be consistent with all other functions.
Updated test harness and added empty zip test.
2017-10-18 16:51:10 -07:00
Nathan Moinvaziri
a8f2f2951a Remove deleting print statement due to travis ci log length. 2017-10-16 19:03:55 -07:00
Nathan Moinvaziri
7482c1e277 Rename exit to sys.exit. 2017-10-16 19:02:31 -07:00
Nathan Moinvaziri
8e095476ec Remove use of random. 2017-10-16 18:59:15 -07:00
Nathan Moinvaziri
3cc104b962 Fixed tests so build fails if they fail.
Added random file generation tests.
Added disk spanning tests.
2017-10-16 15:59:06 -07:00
Nathan Moinvaziri
2f7b0bdac1 Remove .png from test script. 2017-10-16 07:56:04 -07:00
Nathan Moinvaziri
4ca84731d0 Removed unnecessary test file. 2017-10-09 19:03:05 -07:00
Nathan Moinvaziri
d83efdc614 Added back function to recursively create dirs.
Fixed issue extracting files that have dirs in them.
Added unit test for directory zipping/unzipping.
2017-10-09 00:40:53 -07:00
Nathan Moinvaziri
77fcdb3b31 Added test script and files.
Updated travis yaml.
2017-10-05 18:51:48 -07:00