Register escape/unescape xlat functions.
More...
#include "lib/unlang/xlat.h"
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/unlang/xlat_func.h>
#include <ctype.h>
Go to the source code of this file.
Register escape/unescape xlat functions.
- Id
- 4a9d6b2cb0673e0aadc59954b4705abb9c329658
- Copyright
- 2018 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file rlm_escape.c.
◆ rlm_escape_t
Definition at line 39 of file rlm_escape.c.
Data Fields |
char const * |
allowed_chars |
|
◆ mod_bootstrap()
◆ escape_xlat_arg
Initial value:= {
}
@ FR_TYPE_STRING
String of printable characters.
#define XLAT_ARG_PARSER_TERMINATOR
Definition at line 50 of file rlm_escape.c.
◆ hextab
char const hextab[] = "0123456789abcdef" |
|
static |
◆ module_config
Initial value:= {
{
FR_CONF_OFFSET(
"safe_characters",
rlm_escape_t, allowed_chars), .dflt =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /" },
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
Definition at line 43 of file rlm_escape.c.
◆ rlm_escape
Initial value:= {
.common = {
.name = "escape",
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_bootstrap(module_inst_ctx_t const *mctx)
static const conf_parser_t module_config[]
Definition at line 219 of file rlm_escape.c.
◆ unescape_xlat_arg