|
static int | compile_action_pair (unlang_mod_actions_t *actions, CONF_PAIR *cp) |
|
static bool | compile_action_subsection (unlang_t *c, CONF_SECTION *cs, CONF_SECTION *subcs) |
|
static unlang_t * | compile_edit_pair (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_PAIR *cp) |
| Compile one edit pair.
|
|
static unlang_t * | compile_edit_section (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_SECTION *cs) |
| Compile one edit section.
|
|
static unlang_t * | compile_function (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM *ci, CONF_SECTION *subcs, bool policy) |
|
static unlang_t * | compile_item (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM *ci) |
|
static unlang_t * | compile_module (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM *ci, char const *name) |
|
static bool | compile_retry_section (unlang_mod_actions_t *actions, CONF_ITEM *ci) |
|
static void | compile_set_default_actions (unlang_t *c, unlang_compile_ctx_t *unlang_ctx) |
| Update a compiled unlang_t with the default actions.
|
|
static unlang_t * | compile_tmpl (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_ITEM *ci) |
|
static int | compile_variable (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_PAIR *cp, tmpl_rules_t *t_rules) |
| Compile a variable definition.
|
|
int | dict_attr_acopy_children (fr_dict_t *dict, fr_dict_attr_t *dst, fr_dict_attr_t const *src) |
| Copy the children of an existing attribute.
|
|
static int8_t | instruction_cmp (void const *one, void const *two) |
|
static unlang_op_t const * | name_to_op (char const *name) |
|
bool | pass2_fixup_map (map_t *map, tmpl_rules_t const *rules, fr_dict_attr_t const *parent) |
| Fixup ONE map (recursively)
|
|
bool | pass2_fixup_map_rhs (unlang_group_t *g, tmpl_rules_t const *rules) |
|
bool | pass2_fixup_tmpl (UNUSED TALLOC_CTX *ctx, tmpl_t **vpt_p, CONF_ITEM const *ci, fr_dict_t const *dict) |
|
bool | pass2_fixup_update (unlang_group_t *g, tmpl_rules_t const *rules) |
|
int | unlang_compile (virtual_server_t const *vs, CONF_SECTION *cs, unlang_mod_actions_t const *actions, tmpl_rules_t const *rules, void **instruction) |
| Compile an unlang section for a virtual server.
|
|
bool | unlang_compile_actions (unlang_mod_actions_t *actions, CONF_SECTION *action_cs, bool module_retry) |
|
unlang_t * | unlang_compile_children (unlang_group_t *g, unlang_compile_ctx_t *unlang_ctx_in) |
|
unlang_t * | unlang_compile_empty (unlang_t *parent, UNUSED unlang_compile_ctx_t *unlang_ctx, CONF_SECTION *cs, unlang_type_t type) |
|
void | unlang_compile_init (TALLOC_CTX *ctx) |
|
bool | unlang_compile_is_keyword (const char *name) |
| Check if name is an unlang keyword.
|
|
bool | unlang_compile_limit_subsection (CONF_SECTION *cs, char const *name) |
|
unlang_t * | unlang_compile_section (unlang_t *parent, unlang_compile_ctx_t *unlang_ctx, CONF_SECTION *cs, unlang_type_t type) |
|
int | unlang_define_local_variable (CONF_ITEM *ci, unlang_variable_t *var, tmpl_rules_t *t_rules, fr_type_t type, char const *name, fr_dict_attr_t const *ref) |
|
static void | unlang_dump (unlang_t *c, int depth) |
|
static int | unlang_fixup_edit (map_t *map, void *ctx) |
| Validate and fixup a map that's part of an edit section.
|
|
int | unlang_fixup_update (map_t *map, void *ctx) |
| Validate and fixup a map that's part of an update section.
|
|
unlang_group_t * | unlang_group_allocate (unlang_t *parent, CONF_SECTION *cs, unlang_type_t type) |
|
void * | unlang_thread_instance (unlang_t const *instruction) |
| Get the thread-instance data for an instruction.
|
|
int | unlang_thread_instantiate (TALLOC_CTX *ctx) |
| Create thread-specific data structures for unlang.
|
|
static CONF_SECTION * | virtual_module_find_cs (CONF_ITEM *ci, UNUSED char const *real_name, char const *virtual_name, char const *method_name, unlang_compile_ctx_t *unlang_ctx, bool *policy) |
| Load a named module from the virtual module list, or from the "policy" subsection.
|
|
Functions to convert configuration sections into unlang structures.
- Id
- a81ed2e920a1d312839385cd6f7340c66639bb62
- Copyright
- 2006-2016 The FreeRADIUS server project
Definition in file compile.c.
Load a named module from the virtual module list, or from the "policy" subsection.
If it's "foo.method", look for "foo", and return "method" as the method we wish to use, instead of the input component.
- Parameters
-
[in] | ci | Configuration item to check |
[in] | real_name | Complete name string e.g. foo.authorize. |
[in] | virtual_name | Virtual module name e.g. foo. |
[in] | method_name | Method override (may be NULL) or the method name e.g. authorize. |
[in] | unlang_ctx | Unlang context this call is being compiled in. |
[out] | policy | whether or not this thing was a policy |
- Returns
- the CONF_SECTION specifying the virtual module.
Definition at line 1713 of file compile.c.