summaryrefslogtreecommitdiffstats
path: root/syshead.h
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2011-03-10 00:04:39 +0000
committerDavid Sommerseth <dazo@users.sourceforge.net>2011-04-25 22:12:03 +0200
commit6c34e74f1340a72ab7dce077e4d326f03989322c (patch)
tree58d9c9866866156ddd191a4b4bbfefb1d3ab0d34 /syshead.h
parent581bef87088ed2c559f66552088166903cf0098d (diff)
downloadopenvpn-6c34e74f1340a72ab7dce077e4d326f03989322c.tar.gz
openvpn-6c34e74f1340a72ab7dce077e4d326f03989322c.tar.xz
openvpn-6c34e74f1340a72ab7dce077e4d326f03989322c.zip
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
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h12
1 files changed, 12 insertions, 0 deletions
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