You can do this with the OpenSSL command line tool:
openssl zlib -d < $IN > $OUT
Unfortunately, the zlib
subcommand is disabled (--no-zlib
--no-zlib-dynamic
) in the default build configuration; so unless you compile openssl from source and ./configure
accordingly — no luck this way down.