static void account_chid_fn(const char *token, char *value, void *setting, FILE *f) { struct s_auth *account = setting; if (value) { strtolower(value); chk_ftab(value, &account->fchid, "user", account->usr, "chid"); return; } if (account->fchid.nfilts || cfg.http_full_cfg) { value = mk_t_ftab(&account->fchid); fprintf_conf(f, token, "%s\n", value); free_mk_t(value); } }
void chk_ftab_fn(const char *token, char *value, void *setting, FILE *f) { FTAB *ftab = setting; if(value) { if(strlen(value)) chk_ftab(value, ftab); else ftab_clear(ftab); return; } value = mk_t_ftab(ftab); if(strlen(value) > 0 || cfg.http_full_cfg) { fprintf_conf(f, token, "%s\n", value); } free_mk_t(value); }