TALLOC_CTX *xlat_ctx = talloc_init_const("xlat");
char *fmt = talloc_typed_strdup(xlat_ctx, input + 10);
xlat_exp_head_t *head = NULL;
- xlat_flags_t flags = { };
- slen = xlat_tokenize_ephemeral_expression(xlat_ctx, &head, el, &flags,
+ slen = xlat_tokenize_ephemeral_expression(xlat_ctx, &head, el, NULL,
&FR_SBUFF_IN(fmt, talloc_array_length(fmt) - 1),
NULL,
&(tmpl_rules_t) {
continue;
}
- if (xlat_resolve(head, &flags, NULL) < 0) {
+ if (xlat_resolve(head, NULL, NULL) < 0) {
talloc_free(xlat_ctx);
snprintf(output, sizeof(output), "ERROR resolving xlat: %s", fr_strerror());
continue;
UNUSED xlat_ctx_t const *xctx,
request_t *request, fr_value_box_list_t *in)
{
-
- xlat_flags_t flags = {};
xlat_eval_rctx_t *rctx;
fr_value_box_t *arg = fr_dlist_head(in);
* Parse the input as a literal expansion
*/
if (xlat_tokenize_ephemeral(rctx,
- &rctx->ex, unlang_interpret_event_list(request), &flags,
+ &rctx->ex, unlang_interpret_event_list(request), NULL,
&FR_SBUFF_IN(arg->vb_strvalue, arg->vb_length),
&(fr_sbuff_parse_rules_t){
.escapes = &escape_rules
* good errors about what function was
* unresolved.
*/
- if (flags.needs_resolving &&
- (xlat_resolve(rctx->ex, &flags, &(xlat_res_rules_t){ .allow_unresolved = false }) < 0)) {
+ if (rctx->ex->flags.needs_resolving &&
+ (xlat_resolve(rctx->ex, NULL, &(xlat_res_rules_t){ .allow_unresolved = false }) < 0)) {
RPEDEBUG("Unresolved expansion functions in expansion");
goto error;