From 6c34e74f1340a72ab7dce077e4d326f03989322c Mon Sep 17 00:00:00 2001 From: James Yonan Date: Thu, 10 Mar 2011 00:04:39 +0000 Subject: Added --enable-lzo-stub configure option to build an OpenVPN client without LZO, but that has limited interoperability with LZO-enabled servers. Modified "push-peer-info" option to push IV_LZO_STUB=1 to server when client was built with --enable-lzo-stub configure option. This tells the server that the client lacks LZO capabilities, so the server should turn off LZO compression for this client via "lzo no". Added "setenv PUSH_PEER_INFO" option having the same effect as "push-peer-info". Version 2.1.3j git-svn-id: http://svn.openvpn.net/projects/branches/BETA21@7023 e7ae566f-a301-0410-adde-c780ea21d3b5 --- syshead.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'syshead.h') diff --git a/syshead.h b/syshead.h index 1c894c9..0da1fc2 100644 --- a/syshead.h +++ b/syshead.h @@ -697,4 +697,16 @@ socket_defined (const socket_descriptor_t sd) */ #define ENABLE_CLIENT_NAT +/* + * Support LZO as a stub in client? (LZO lib not included, but we + * we still support LZO protocol changes that allow us to + * communicate with an LZO-enabled server) + */ +#ifdef LZO_STUB +#undef USE_LZO +#undef LZO_VERSION_NUM +#define USE_LZO 1 +#define LZO_VERSION_NUM "STUB" +#endif + #endif -- cgit