Andrei Pelinescu-Onciul writes:
You cannot use fixup_pvar_pvar for more then 2 parameters. A lot of the fixup functions check the number of parameters and return error for more then 2. However in the case of fixup_pvar_pvar(), you can replace it with fixup_pvar_all() (and fixup_free_pvar_all).
In your case replacing 2 with 3 and pvar_pvar with pvar_all should work, e.g.: {"allow_trusted3", (cmd_function)allow_trusted_2, 3, fixup_pvar_all, fixup_free_pvar_all, REQUEST_ROUTE | FAILURE_ROUTE},
the problem is that fixup_pvar_all has only been defined in mod_fix.c, not in mod_fix.h. can i just go and add it in mod_fix.h?
-- juha