]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
curl: Bump minimum version to 7.45.0 as we need CURLOPT_DEFAULT_PROTOCOL
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 Jun 2020 23:24:54 +0000 (18:24 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 Jun 2020 23:24:54 +0000 (18:24 -0500)
src/lib/curl/base.c
src/lib/curl/base.h
src/lib/curl/configure
src/lib/curl/configure.ac
src/lib/curl/io.c
src/modules/rlm_rest/rest.h

index de96e049fdc90565518a906116309371e5b8a426..be81fd91e50c7f72f879b861a14906de1656abf5 100644 (file)
 #include <freeradius-devel/tls/base.h>
 #endif
 
+#define CURL_NO_OLDIES 1
+
 #include <curl/curl.h>
 #include <talloc.h>
 
+/*
+ *     We have to use this as curl uses lots of enums
+ */
+#ifndef CURL_AT_LEAST_VERSION
+#  define CURL_VERSION_BITS(x, y, z) ((x) << 16 | (y) << 8 | z)
+#  define CURL_AT_LEAST_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
+#endif
+
 static uint32_t instance_count = 0;
 static fr_dict_t const *dict_freeradius; /*internal dictionary for server*/
 
index 7fd2fb3637f61361f424fc2d925e02e8ec93dd21..06816355710080a472d70a8edef47b0c128b8281 100644 (file)
@@ -29,6 +29,8 @@ RCSIDH(curl_h, "$Id$")
 extern "C" {
 #endif
 
+#define CURL_NO_OLDIES 1
+
 #include <curl/curl.h>
 #include <freeradius-devel/server/request.h>
 #include <freeradius-devel/util/event.h>
index 484d91905c2cad4efc28585d8525048097230f86..c8a27f23d0db2875cfccc195ebbe2954f662e52f 100755 (executable)
@@ -3045,11 +3045,11 @@ fi
 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
 
        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
-       _libcurl_wanted=`echo 7.19.1 | $_libcurl_version_parse`
+       _libcurl_wanted=`echo 7.45.0 | $_libcurl_version_parse`
 
        if test $_libcurl_wanted -gt 0 ; then
-          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.19.1" >&5
-$as_echo_n "checking for libcurl >= version 7.19.1... " >&6; }
+          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.45.0" >&5
+$as_echo_n "checking for libcurl >= version 7.45.0... " >&6; }
 if ${libcurl_cv_lib_version_ok+:} false; then :
   $as_echo_n "(cached) " >&6
 else
@@ -3296,10 +3296,6 @@ mod_cflags="$LIBCURL_CPPFLAGS"
 
 
 
-
-unset ac_cv_env_LIBS_set
-unset ac_cv_env_LIBS_value
-
 ac_config_files="$ac_config_files all.mk"
 
 cat >confcache <<\_ACEOF
@@ -4576,4 +4572,3 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 fi
 
 
-
index c238d39732552e3160a7a1aa86c27b4be99a391c..feaba2b630a62f3d5157d54016b61a83b0c7f12f 100644 (file)
@@ -18,7 +18,7 @@ if test x$with_[]modname != xno; then
        dnl # Check for curl
        dnl ############################################################
 
-       LIBCURL_CHECK_CONFIG([], [7.19.1])
+       LIBCURL_CHECK_CONFIG([], [7.45.0])
 
        if test "x$libcurl_cv_lib_version_ok" != "xyes"; then
                fail="$fail libcurl >= 7.19.2"
index 40f0104a31a4bdc9249da951fff9d0ae3edd0339..fd19c085a5ef9346c1f829cbf0687a6843a12151 100644 (file)
@@ -27,6 +27,8 @@
 #include <freeradius-devel/unlang/base.h>
 #include <freeradius-devel/util/syserror.h>
 
+#define CURL_NO_OLDIES 1
+
 #include <curl/curl.h>
 #include <talloc.h>
 
index e385031885958dabd11fa66a1c91e096c0492107..a39f712f369cb300c977335326d66d8f7cfdb256 100644 (file)
@@ -32,14 +32,6 @@ RCSIDH(rest_h, "$Id$")
 
 #define CURL_NO_OLDIES 1
 
-/*
- *     We have to use this as curl uses lots of enums
- */
-#ifndef CURL_AT_LEAST_VERSION
-#  define CURL_VERSION_BITS(x, y, z) ((x) << 16 | (y) << 8 | z)
-#  define CURL_AT_LEAST_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
-#endif
-
 #include <curl/curl.h>
 
 /*