Commit graph

23 commits

Author SHA1 Message Date
Chris Hennick
b59515bbd7
chore: Remove a drop that can no longer be explicit 2024-05-05 19:30:18 -07:00
awakening
4078bd34cd
fix: Decrypt the read bytes in ZipCrypto instead of entire buffer
Fixes `corrupt deflate stream` panic when extracting a file from encrypted archive (zip-rs/zip#280).
2024-04-27 23:41:32 +07:00
awakening
b718fdf5d0
test: Move embedded archive from variable to a constant 2024-04-27 23:41:28 +07:00
Chris Hennick
174825229c
Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
Wyatt Herkamp
61afe4dad9
Added ExtendedFileOptions 2024-04-15 16:32:07 -04:00
Chris Hennick
ece098d393 Make InvalidPassword a kind of ZipError 2024-03-13 13:05:54 -07:00
Chris Hennick
2407ef95c6
Fixes and refactors for no-features build 2023-05-30 18:17:59 -07:00
Chris Hennick
255cfaf261
Add flush_on_finish_file parameter 2023-05-26 17:22:53 -07:00
Chris Hennick
6c4ae5333a
Fix merge 2023-05-08 18:55:28 -07:00
Chris Hennick
89989e02a3
Reformat 2023-05-08 18:54:35 -07:00
Chris Hennick
67bfe53d65
Merge upstream version 0.6.5 2023-05-08 18:54:10 -07:00
Marli Frost
2eeb47ce56 add support for writing files with PKWARE encryption 2023-05-06 15:48:52 +01:00
Chris Hennick
cde5d5ed11
Implement shallow copy from within the file being written 2023-04-23 14:33:10 -07:00
Marli Frost
61de5d51ac
feat: constant for handling missing password 2021-06-04 18:42:20 +01:00
Marli Frost
105368aebf docs: improve explanation of new APIs 2020-11-10 16:37:14 +00:00
Marli Frost
a35c8ffa91
chore: update tests to use preferred method 2020-09-12 10:51:43 +01:00
Marli Frost
5e5bd86915
refactor: remove extra variants from ZipError 2020-09-10 10:21:47 +01:00
Marli Frost
4eba55cb7a
refactor: use deprecated API in tests 2020-08-19 13:59:48 +01:00
Benjamin Richner
2730ca7e76 Turned clumsy if statements into matcher clause 2020-06-23 21:44:26 +02:00
Benjamin Richner
9e2b14f368 Create meaningful panic messages in ZipCrypto test 2020-06-23 21:35:59 +02:00
Benjamin Richner
4737f145ff Use b prefix instead of as_bytes() 2020-06-23 21:28:34 +02:00
Benjamin Richner
493afdbee1 run cargo fmt 2020-06-21 17:47:08 +02:00
Benjamin Richner
402ecb1e34 Add ZipCrypto unit test 2020-05-21 23:54:12 +02:00