]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Various fixes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 Jan 2024 02:04:04 +0000 (20:04 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 Jan 2024 02:04:04 +0000 (20:04 -0600)
src/lib/curl/base.c
src/lib/curl/xlat.c
src/lib/curl/xlat.h
src/modules/rlm_rest/rlm_rest.c

index ad184d054b37441035b13265faca1576c8d5772e..b222e787c67517ee7f0d240a4c9a9a0c0f6aacdf 100644 (file)
@@ -22,6 +22,7 @@
  * @copyright 2020 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
  */
 #include <freeradius-devel/curl/base.h>
+#include <freeradius-devel/curl/xlat.h>
 #ifdef WITH_TLS
 #include <freeradius-devel/tls/base.h>
 #endif
@@ -30,7 +31,6 @@
 #include <freeradius-devel/unlang/xlat_func.h>
 
 #include "attrs.h"
-#include "xlat.h"
 
 fr_dict_attr_t const *attr_tls_certificate;
 static fr_dict_t const *dict_freeradius; /*internal dictionary for server*/
@@ -281,10 +281,10 @@ static int fr_curl_init(void)
                xlat_t *xlat;
 
                xlat = xlat_func_register(NULL, "uri.escape", fr_curl_xlat_uri_escape, FR_TYPE_STRING);
-               xlat_func_args_set(xlat, &fr_curl_xlat_uri_args);
+               xlat_func_args_set(xlat, fr_curl_xlat_uri_args);
                xlat_func_safe_for_set(xlat, fr_curl_xlat_uri_escape);
                xlat = xlat_func_register(NULL, "uri.unescape", fr_curl_xlat_uri_unescape, FR_TYPE_STRING);
-               xlat_func_args_set(xlat, &fr_curl_xlat_uri_args);
+               xlat_func_args_set(xlat, fr_curl_xlat_uri_args);
        }
 
        return 0;
index 5e80f4b064ddd8fdab9494f65a51f743248cb2a1..63f79b23d54d7f451e45e944810b412bdd1e1339 100644 (file)
@@ -25,6 +25,7 @@
 #include <freeradius-devel/util/value.h>
 #include <freeradius-devel/unlang/xlat.h>
 #include <freeradius-devel/curl/base.h>
+#include <freeradius-devel/curl/xlat.h>
 
 #include "base.h"
 
index 16ad2e24b603712cb384d45edf4106f632d736e6..b08a2abbc8b8a5d212060a83008e8185d6bc2c3e 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
 #include <curl/curl.h>
 #include <freeradius-devel/unlang/xlat.h>
 
-extern xlat_arg_parser_t const fr_curl_xlat_uri_args;
+extern xlat_arg_parser_t const fr_curl_xlat_uri_args[];
 
 xlat_action_t          fr_curl_xlat_uri_escape(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out,
                                                UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request,
index 48742b76f0d816791fd5569d4a16ea755434c95f..aa7992e0cc68fa1cd57e1219304ec7c405e35d77 100644 (file)
@@ -26,6 +26,7 @@
 RCSID("$Id$")
 
 #include <freeradius-devel/curl/base.h>
+#include <freeradius-devel/curl/xlat.h>
 #include <freeradius-devel/server/base.h>
 #include <freeradius-devel/server/cf_parse.h>
 #include <freeradius-devel/server/cf_util.h>