The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
xlat.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18/** Generic xlat functions dependent on libcurl
19 *
20 * @file src/lib/curl/xlat.h
21 *
22 * @copyright 2024 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
23 */
24RCSIDH(curl_xlat_h, "$Id: 75e6ea3cce20a84cd339cc3b43b8eb1e03b27a54 $")
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <curl/curl.h>
31#include <freeradius-devel/unlang/xlat.h>
32
33/** safe for value suitable for all users of the curl library
34 *
35 */
36#define CURL_URI_SAFE_FOR ((fr_value_box_safe_for_t)fr_curl_xlat_uri_escape)
37
40
42 UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request,
43 fr_value_box_list_t *in);
44
46 UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request,
47 fr_value_box_list_t *in);
48
49#ifdef __cplusplus
50}
51#endif
#define RCSIDH(h, id)
Definition build.h:484
#define UNUSED
Definition build.h:315
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, fr_value_box_list_t *in)
xlat_arg_parser_t const fr_curl_xlat_uri_args[]
Definition xlat.c:32
xlat_arg_parser_t const fr_curl_xlat_safe_args[]
Definition xlat.c:37
xlat_action_t fr_curl_xlat_uri_unescape(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in)
static fr_slen_t in
Definition dict.h:824
xlat_action_t
Definition xlat.h:37
Definition for a single argument consumend by an xlat function.
Definition xlat.h:147
static size_t char ** out
Definition value.h:997
An xlat calling ctx.
Definition xlat_ctx.h:49