|
static int | _log_dst_free (fr_log_t *log) |
|
static int | _xlat_global_free (UNUSED void *uctx) |
| De-register all xlat functions we created. More...
|
|
static int | _xlat_global_init (UNUSED void *uctx) |
| Global initialisation for xlat. More...
|
|
static xlat_action_t | protocol_decode_xlat (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Decode any protocol attribute / options. More...
|
|
static xlat_action_t | protocol_encode_xlat (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Encode protocol attributes / options. More...
|
|
static int | protocol_xlat_instantiate (xlat_inst_ctx_t const *mctx) |
|
static void | ungroup (fr_dcursor_t *out, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_change_case (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED request_t *request, fr_value_box_list_t *args, bool upper) |
| Change case of a string. More...
|
|
void | xlat_debug_attr_list (request_t *request, fr_pair_list_t const *list) |
|
void | xlat_debug_attr_vp (request_t *request, fr_pair_t *vp, tmpl_t const *vpt) |
|
static int | xlat_eval_instantiate (xlat_inst_ctx_t const *xctx) |
|
static xlat_action_t | xlat_eval_resume (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, xlat_ctx_t const *xctx, UNUSED request_t *request, UNUSED fr_value_box_list_t *in) |
| Just serves to push the result up the stack. More...
|
|
static ssize_t | xlat_file_escape_path (fr_sbuff_t *in, fr_value_box_t *vb) |
| Escape the paths as necessary. More...
|
|
static const char * | xlat_file_name (fr_value_box_t *vb) |
|
static xlat_action_t | xlat_func_base64_decode (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Decode base64 string. More...
|
|
static xlat_action_t | xlat_func_base64_encode (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Encode string or attribute as base64. More...
|
|
static xlat_action_t | xlat_func_bin (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Convert hex string to binary. More...
|
|
static xlat_action_t | xlat_func_cast (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Cast one or more output value-boxes to the given type. More...
|
|
static xlat_action_t | xlat_func_concat (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Concatenate string representation of values of given attributes using separator. More...
|
|
static xlat_action_t | xlat_func_debug (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Dynamically change the debugging level for the current request. More...
|
|
static xlat_action_t | xlat_func_debug_attr (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Print out attribute info. More...
|
|
static xlat_action_t | xlat_func_eval (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Dynamically evaluate an expansion string. More...
|
|
static xlat_action_t | xlat_func_explode (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Split a string into multiple new strings based on a delimiter. More...
|
|
static xlat_action_t | xlat_func_file_escape (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
|
static xlat_action_t | xlat_func_file_exists (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
|
static xlat_action_t | xlat_func_file_head (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_file_rm (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_file_size (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_file_tail (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_hex (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Print data as hex, not as VALUE. More...
|
|
static xlat_action_t | xlat_func_hmac_md5 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Generate the HMAC-MD5 of a string or attribute. More...
|
|
static xlat_action_t | xlat_func_hmac_sha1 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Generate the HMAC-SHA1 of a string or attribute. More...
|
|
static xlat_action_t | xlat_func_immutable_attr (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Mark one or more attributes as immutable. More...
|
|
static xlat_action_t | xlat_func_integer (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Print data as integer, not as VALUE. More...
|
|
static xlat_action_t | xlat_func_join (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Join a series of arguments to form a single list. More...
|
|
static xlat_action_t | xlat_func_length (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Return the on-the-wire size of the boxes in bytes. More...
|
|
static xlat_action_t | xlat_func_log_debug (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Log something at DEBUG level. More...
|
|
static xlat_action_t | xlat_func_log_dst (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Change the log destination to the named one. More...
|
|
static xlat_action_t | xlat_func_log_err (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Log something at DEBUG level. More...
|
|
static xlat_action_t | xlat_func_log_info (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Log something at INFO level. More...
|
|
static xlat_action_t | xlat_func_log_warn (UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Log something at WARN level. More...
|
|
static xlat_action_t | xlat_func_lpad (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| lpad a string More...
|
|
static xlat_action_t | xlat_func_map (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Processes fmt as a map string and applies it to the current request. More...
|
|
static xlat_action_t | xlat_func_md4 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Calculate the MD4 hash of a string or attribute. More...
|
|
static xlat_action_t | xlat_func_md5 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Calculate the MD5 hash of a string or attribute. More...
|
|
static xlat_action_t | xlat_func_next_time (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Calculate number of seconds until the next n hour(s), day(s), week(s), year(s). More...
|
|
static xlat_action_t | xlat_func_pairs (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Encode attributes as a series of string attribute/value pairs. More...
|
|
static xlat_action_t | xlat_func_rand (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Generate a random integer value. More...
|
|
static xlat_action_t | xlat_func_randstr (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Generate a string of random chars. More...
|
|
static xlat_action_t | xlat_func_rpad (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Right pad a string. More...
|
|
static xlat_action_t | xlat_func_sha1 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Calculate the SHA1 hash of a string or attribute. More...
|
|
static xlat_action_t | xlat_func_str_printable (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Return whether a string has only printable chars. More...
|
|
static xlat_action_t | xlat_func_str_utf8 (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Return whether a string is valid UTF-8. More...
|
|
static xlat_action_t | xlat_func_string (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Print data as string, if possible. More...
|
|
static xlat_action_t | xlat_func_strlen (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Print length of given string. More...
|
|
static xlat_action_t | xlat_func_subnet_broadcast (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Calculate the broadcast address from a IPv4 prefix. More...
|
|
static xlat_action_t | xlat_func_subnet_netmask (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Calculate the subnet mask from a IPv4 prefix. More...
|
|
static xlat_action_t | xlat_func_subst (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Perform regex substitution. More...
|
|
static xlat_action_t | xlat_func_substr (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Extract a substring from string / octets data. More...
|
|
static xlat_action_t | xlat_func_taint (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_time (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| Return the time as a FR_TYPE_DATE. More...
|
|
static xlat_action_t | xlat_func_tolower (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Convert a string to lowercase. More...
|
|
static xlat_action_t | xlat_func_toupper (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Convert a string to uppercase. More...
|
|
static xlat_action_t | xlat_func_ungroup (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
| Ungroups all of its arguments into one flat list. More...
|
|
static xlat_action_t | xlat_func_untaint (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *in) |
|
static xlat_action_t | xlat_func_urlquote (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| URLencode special characters. More...
|
|
static xlat_action_t | xlat_func_urlunquote (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *args) |
| URLdecode special characters. More...
|
|
int | xlat_global_init (void) |
|
static xlat_action_t | xlat_hmac (TALLOC_CTX *ctx, fr_dcursor_t *out, fr_value_box_list_t *args, uint8_t *digest, int digest_len, hmac_type type) |
|
static int | xlat_protocol_register (fr_dict_t const *dict) |
|
static int | xlat_protocol_register_by_name (dl_t *dl, char const *name) |
|
static int | xlat_protocol_register_cbor (void) |
|
int | xlat_protocols_register (void) |
| Register xlats for any loaded dictionaries. More...
|
|
xlat_action_t | xlat_transparent (UNUSED TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, UNUSED request_t *request, fr_value_box_list_t *args) |
| Common function to move boxes form input list to output list. More...
|
|