The use of lzo if OpenSSL has zlib
Hello openvpn-devel,
I did not have lzo's lib and headers before I attempted OpenVPN port, so I had to "./configure --disable-lzo".
When I ported OpenSSL (long ago) - I ./configure'd it to use zlib.
Now, when I use the resulting ssl.lib for OpenVPN (or any other SSL-dependent package) - I have to link with zlib as well (otherwise I get unresolved symbols errors).
What if I port lzo too and use it for OpenVPN configuration? I will still have to link with the zlib, but which compression the OpenVPN daemon will use if lzo is enabled in it's configuration?
Signature · 2 lines
Best regards, Tony mailto:[email protected]...
Quoted 2 lines · On Sat, 03 Sep 2005, [email protected]... wrote:
I did not have lzo's lib and headers before I attempted OpenVPN port, so I had to "./configure --disable-lzo".
So get LZO, compile and install it, then compile OpenVPN.
Quoted 1 line
When I ported OpenSSL (long ago) - I ./configure'd it to use zlib.
Doesn't matter. Why would OpenVPN care for zlib?
Quoted 3 lines
Now, when I use the resulting ssl.lib for OpenVPN (or any other SSL-dependent package) - I have to link with zlib as well (otherwise I get unresolved symbols errors).
Right.
Quoted 3 lines
What if I port lzo too and use it for OpenVPN configuration? I will still have to link with the zlib, but which compression the OpenVPN daemon will use if lzo is enabled in it's configuration?
If OpenSSL wants zlib, you need to link with it, no matter if LZO is there or not. LZO is a different compression, not compatible with zlib.
Signature · 1 line
Matthias Andree
Hello Matthias,
Quoted 3 lines · you
Quoted 3 lines
What if I port lzo too and use it for OpenVPN configuration? I will still have to link with the zlib, but which compression the OpenVPN daemon will use if lzo is enabled in it's configuration?
MA> If OpenSSL wants zlib, you need to link with it, no matter if LZO is MA> there or not. LZO is a different compression, not compatible with zlib. May be my question was not clear enough...
I wonder what compression will be in effect if both OpenSSL has zlib and OpenVPN has lzo.
Which compressor will act upon the traffic? Both? Either or neither? That is to ask if I really need porting lzo when zlib compresses tighter and OpenVPN is smart enough not to try compress already compacted data. (Or, OpenSSL will use zlib on TLS handshake etc, while OpenVPN will use lzo for the user-data and so there will be some advantage gained?)
Signature · 2 lines
Best regards, Tony. mailto:[email protected]...
Just because OpenSSL is linked with zlib doesn't mean it's going to actually use it for anything -- and to my knowledge, it doesn't.