]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bump minimum GnuTLS version required by Squid. (#156)
authorAmos Jeffries <yadij@users.noreply.github.com>
Mon, 26 Feb 2018 04:00:22 +0000 (17:00 +1300)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2018 04:00:22 +0000 (17:00 +1300)
PR#81 added functions only provided by GnuTLS 3.4.0 and later, but did not bump the
configure.ac check for GnuTLS to enforce that version as minimum.

configure.ac

index b45f33c763c73fba9aa649234a069ff75bce9e37..f9e744f65d8793d8e8efd772937b55057faf4def 100644 (file)
@@ -1245,13 +1245,13 @@ if test "x$with_gnutls" != "xno"; then
   LIBS="$LIBS $LIBGNUTLS_PATH"
 
   # auto-detect using pkg-config
-  PKG_CHECK_MODULES([LIBGNUTLS],[gnutls >= 3.1.5],[
+  PKG_CHECK_MODULES([LIBGNUTLS],[gnutls >= 3.4.0],[
     CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
     ],[
     ## find the package without pkg-config
     ## 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"])
+    ## by testing for a 3.4.0+ function which we use
+    AC_CHECK_LIB(gnutls,gnutls_pcert_export_x509,[LIBGNUTLS_LIBS="-lgnutls"])
   ])
   AC_CHECK_HEADERS(gnutls/gnutls.h gnutls/x509.h gnutls/abstract.h)