-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the Password property from DeflaterOutputStream into ZipOutputStream #604
Conversation
Codecov Report
@@ Coverage Diff @@
## master #604 +/- ##
==========================================
+ Coverage 73.24% 73.30% +0.06%
==========================================
Files 68 68
Lines 8712 8710 -2
==========================================
+ Hits 6381 6385 +4
+ Misses 2331 2325 -6
Continue to review full report at Codecov.
|
@piksel would you consider the public API change as acceptable, before I see about doing anything else with this? |
Yeah, I think it's good idea. It's a breaking change on a technical level, but if there is any code out there relying on it, it's probably not doing what the author intended anyway (as shown by the referenced issue). |
hmm, moved the code that sets up the crypto transforms and didn't notice till looking at the coverage results that the existing code initialises the static |
Will still push this to v1.4.0 due to the "breakage". |
refs #590
This would be a breaking API change, but - is there actually a need for the Password property to be on DeflaterOutputStream, given that it only applies to creating encrypted Zip files? (the property isn't actually referenced by DeflaterOutputStream anyway, only from ZipOutputStream)
Related:
The
InitializePassword
andInitializeAESPassword
functions in DeflaterOutputStream only seem to be called from ZipOutputStream as well, though they set the (presently private)cryptoTransform_
member as well, so moving them as well would need a further change.I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.