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 --- options.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'options.c') diff --git a/options.c b/options.c index dfba941..e8e0d7a 100644 --- a/options.c +++ b/options.c @@ -4754,6 +4754,12 @@ add_option (struct options *options, msg (msglevel, "this is a generic configuration and cannot directly be used"); goto err; } +#ifdef ENABLE_PUSH_PEER_INFO + else if (streq (p[1], "PUSH_PEER_INFO")) + { + options->push_peer_info = true; + } +#endif #if P2MP else if (streq (p[1], "SERVER_POLL_TIMEOUT") && p[2]) { -- cgit v1.2.3