* @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
#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*/
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;
#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"
#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,
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>