From 9403e3f4b510fbc4187044f31be8f7dccbde1cf1 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Sat, 10 Oct 2015 18:34:49 +0200 Subject: 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 Acked-by: Arne Schwabe Message-Id: <1444494889-28925-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10251 --- src/openvpn/comp.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/openvpn/comp.c') 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; -- cgit