summaryrefslogtreecommitdiffstats
path: root/src/openvpn/comp.c
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2015-10-10 18:34:49 +0200
committerGert Doering <gert@greenie.muc.de>2015-10-11 10:25:06 +0200
commit9403e3f4b510fbc4187044f31be8f7dccbde1cf1 (patch)
treee4d0fe330a98c29b9ead343ec854891d849e3852 /src/openvpn/comp.c
parentc67acea173dc9ee37220f5b9ff14ede081181992 (diff)
downloadopenvpn-9403e3f4b510fbc4187044f31be8f7dccbde1cf1.tar.gz
openvpn-9403e3f4b510fbc4187044f31be8f7dccbde1cf1.tar.xz
openvpn-9403e3f4b510fbc4187044f31be8f7dccbde1cf1.zip
Remove support for snappy compression.
LZ4 is using less CPU at similar performance, and it is easier to build and support for binary installs (as it does not require C++ and a C++ runtime). Since it was never supported in any formally released OpenVPN version, just drop it again. This leaves in the compression opcode for Snappy for documentation purposes. trac #617 Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1444494889-28925-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10251
Diffstat (limited to 'src/openvpn/comp.c')
-rw-r--r--src/openvpn/comp.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openvpn/comp.c b/src/openvpn/comp.c
index 4ac589f..706ad7e 100644
--- a/src/openvpn/comp.c
+++ b/src/openvpn/comp.c
@@ -58,14 +58,6 @@ comp_init(const struct compress_options *opt)
(*compctx->alg.compress_init)(compctx);
break;
#endif
-#ifdef ENABLE_SNAPPY
- case COMP_ALG_SNAPPY:
- ALLOC_OBJ_CLEAR (compctx, struct compress_context);
- compctx->flags = opt->flags;
- compctx->alg = snappy_alg;
- (*compctx->alg.compress_init)(compctx);
- break;
-#endif
#ifdef ENABLE_LZ4
case COMP_ALG_LZ4:
ALLOC_OBJ_CLEAR (compctx, struct compress_context);
@@ -129,9 +121,6 @@ comp_generate_peer_info_string(const struct compress_options *opt, struct buffer
#if defined(ENABLE_LZ4)
buf_printf (out, "IV_LZ4=1\n");
#endif
-#if defined(ENABLE_SNAPPY)
- buf_printf (out, "IV_SNAPPY=1\n");
-#endif
#if defined(ENABLE_LZO)
buf_printf (out, "IV_LZO=1\n");
lzo_avail = true;