Browse code

Require a 1.2.x PolarSSL version

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)

Josh Cepek authored on 2013/11/15 03:02:59
Showing 1 changed files
... ...
@@ -809,13 +809,13 @@ if test "${with_crypto_library}" = "polarssl" ; then
809 809
 #include <polarssl/version.h>
810 810
 			]],
811 811
 			[[
812
-#if POLARSSL_VERSION_NUMBER < 0x01020A00
812
+#if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
813 813
 #error invalid version
814 814
 #endif
815 815
 			]]
816 816
 		)],
817 817
 		[AC_MSG_RESULT([ok])],
818
-		[AC_MSG_ERROR([PolarSSL 1.2.10 or newer required])]
818
+		[AC_MSG_ERROR([PolarSSL 1.2.x required and must be 1.2.10 or later])]
819 819
 	)
820 820
 
821 821
 	polarssl_with_pkcs11="no"