Re: [Openvpn-devel] Trying to use zlib with openvpn

2004-05-27 Thread Matthias Andree
On Thu, 27 May 2004, Ming-Ching Tiew wrote: > OK thanks for the response. Upon closer investigation, I > found that it is my own problem. The LZO_COMPRESS is > taking the parameters as (source, source_len, dst, dest_len) > whereas zlib compress is (dest, dest_len, source, source_len). > > There

Re: [Openvpn-devel] Trying to use zlib with openvpn

2004-05-27 Thread Ming-Ching Tiew
> Make sure that you define > > #define LZO_EXTRA_BUFFER(len) ((len)/64 + 16 + 3) /* LZO worst case size > expansion. */ > > for zlib. > OK thanks for the response. Upon closer investigation, I found that it is my own problem. The LZO_COMPRESS is taking the parameters as (source, source_le

Re: [Openvpn-devel] Trying to use zlib with openvpn

2004-05-26 Thread James Yonan
Ming-Ching Tiew said: > > Last night after posting to openvpn-user maillist about > wanting to use zlib with OpenVPN, I had a look at the > code. It seems the compression code is well-contained > in lzo.c, I could even do a one-to-one swap of > 'LZO_COMPRESS' with zlib's 'compress' and simila