]> git.ipfire.org Git - thirdparty/openvpn.git/commit
lz4: Move towards a newer LZ4 API
authorDavid Sommerseth <davids@openvpn.net>
Thu, 7 Sep 2017 17:20:04 +0000 (19:20 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Fri, 22 Sep 2017 21:39:29 +0000 (23:39 +0200)
commit38da61f3cc2f06ff7d3d174576dc5c6e87d6d174
treed1a23fb6f546fa3eec0a2a12efdaf122dbb1add3
parentc7e259160b28e94e4ea7f0ef767f8134283af255
lz4: Move towards a newer LZ4 API

We are using a deprecated function, LZ4_compress_limitedOutput(), which
will be removed with time.  The correct function to use is
LZ4_compress_default().  Both function takes the same number of
arguments and data types, so the change is minimal.

This patch will also enforce the system LZ4 library to be at least v1.7.1.
If the system library is not found or it is older, it will be build using
the bundled LZ4 library.  The version number requirement is based on the
LZ4 version we ship.

The changes in configure.ac for the version check is modelled around the
same approach we use for OpenSSL.  Plus it does a few minor reformats and
improvements to comply with more recommend autoconf coding style.

This patch is a result of the discussions in this mail thread:
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14135.html

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170907172004.22534-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15396.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit 5f6225c32e41a922069964d9d59c2fcd6589f74c)
configure.ac
src/openvpn/comp-lz4.c