]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Crypto-NG: require GnuTLS to have version 3.1.5 or later
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Apr 2014 15:14:14 +0000 (09:14 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Apr 2014 15:14:14 +0000 (09:14 -0600)
configure.ac

index d4b89c46c0b72d25f8a612b6ff15d6b2eb4e83ce..46b76499afccbc89912b115ed2e7d664355cd109 100644 (file)
@@ -1240,9 +1240,11 @@ if test "x$with_gnutls" != "xno"; then
   LIBS="$LIBS $LIBGNUTLS_PATH"
 
   # auto-detect using pkg-config
-  PKG_CHECK_MODULES([LIBGNUTLS],[gnutls],,[
+  PKG_CHECK_MODULES([LIBGNUTLS],[gnutls >= 3.1.5],,[
     ## find the package without pkg-config
-    AC_CHECK_LIB(gnutls,gnutls_init,[LIBGNUTLS_LIBS="-lgnutls"])
+    ## check that the library is actually new enough.
+    ## by testing for a 3.1.5+ function which we use
+    AC_CHECK_LIB(gnutls,gnutls_certificate_verify_peers3,[LIBGNUTLS_LIBS="-lgnutls"])
   ])
 
   SQUID_STATE_ROLLBACK(squid_gnutls_state) #de-pollute LIBS