Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When do I need zlib in OpenSSL?

Some site describe config & make for OpenSSL with zlib while I can do it without zlib.

It means zlib is not necessary for openSSL in some case.

Does anyone tell me what case OpenSSL does compression or decompression?

The answer from @JakeGould is useful. I want to know how to choose if I use –z or not?

like image 219
user1345414 Avatar asked May 21 '14 01:05

user1345414


People also ask

Does OpenSSL require zlib?

Some site describe config & make for OpenSSL with zlib while I can do it without zlib. It means zlib is not necessary for openSSL in some case.

What is the use of zlib?

zlib is a free, open source software library for lossless data compression and decompression . It was written by Jean-loup Gailly (compression) and Mark Adler (decompression), in C language. The first version of zlib was released in May 1995. Jean-loup Gailly and Mark Adler also wrote the code for gzip (GNU zip).

What is zlib module?

For applications that require data compression, the functions in this module allow compression and decompression, using the zlib library. The zlib library has its own home page at https://www.zlib.net.

What is zlib compression level?

The compression ratio of zlib ranges between 2:1 to 5:1. Additionally, it provides ten compression levels, and different levels have different compression ratios and speeds. zlib algorithm uses Deflate method for compression and Inflate method for decompression. Deflate method encodes the data into compressed data.


1 Answers

The answer is right in the manual. It relates to the -z option:

Compress or decompress clear text using zlib before encryption or after decryption. This option exists only if OpenSSL with compiled with zlib or zlib-dynamic option.

like image 52
Giacomo1968 Avatar answered Sep 28 '22 09:09

Giacomo1968