Skip to content

mz_crypt.h is missing macros like zencode and zdecode which is breaking the compatibility #806

Description

@ljavorsk

The crypt.h in the madler/zlib contains macros zencode [1] and zdecode [2] used by some external applications, but these functions are missing in the minizip-ng, thus breaking compatibility.

I've tried to find where they disappeared, and it looks like commit 4138ca5 has removed the whole crypt.h and crypt.c files, then it was replaced by mz_stream_pkcrypt_decode in commit d7814e9, but after that, there must have been some force-push, and the history of removing this function is gone.

[1] https://github.com/madler/zlib/blob/d476828316d05d54c6fd6a068b121b30c147b5cd/contrib/minizip/crypt.h#L77
[2] https://github.com/madler/zlib/blob/d476828316d05d54c6fd6a068b121b30c147b5cd/contrib/minizip/crypt.h#L74

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions