]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Require a 1.2.x PolarSSL version
authorJosh Cepek <josh.cepek@usa.net>
Thu, 14 Nov 2013 18:02:59 +0000 (12:02 -0600)
committerGert Doering <gert@greenie.muc.de>
Thu, 14 Nov 2013 20:32:39 +0000 (21:32 +0100)
Upstream policy on PolarSSL API compatibility does not guarantee
stability between point-releases. For OpenVPN, we must verify a 1.2.x
version with the current codebase.

This fixes bug#343.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <5284F32D.3000206@usa.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7968
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 7fc9245f5d97c7d76c635f8a3e38ab55ab27b27b)

configure.ac

index 9e666cdb638189b4ea5ffd6cab797e988f682f5a..3b79ba3923da4cdec39e240b9d95751d0d994319 100644 (file)
@@ -809,13 +809,13 @@ if test "${with_crypto_library}" = "polarssl" ; then
 #include <polarssl/version.h>
                        ]],
                        [[
-#if POLARSSL_VERSION_NUMBER < 0x01020A00
+#if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
 #error invalid version
 #endif
                        ]]
                )],
                [AC_MSG_RESULT([ok])],
-               [AC_MSG_ERROR([PolarSSL 1.2.10 or newer required])]
+               [AC_MSG_ERROR([PolarSSL 1.2.x required and must be 1.2.10 or later])]
        )
 
        polarssl_with_pkcs11="no"