]> 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:38:44 +0000 (23:38 +0200)
commit5f6225c32e41a922069964d9d59c2fcd6589f74c
tree96646531bc92d93a82748de5e78a63a87bfcda23
parent3b1a61e9fb27213c46f76312f4065816bee8ed01
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>
configure.ac
src/openvpn/comp-lz4.c