Skip to content

Commit

Permalink
Ifdef out all the xlat code
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 27, 2016
1 parent 812d1f8 commit a1f8433
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/rlm_rest/rlm_rest.c
Expand Up @@ -170,6 +170,7 @@ static int rlm_rest_perform(rlm_rest_t const *instance, rlm_rest_thread_t *threa
return 0;
}

#if 0
/*
* Simple xlat to read text data from a URL
*/
Expand Down Expand Up @@ -288,7 +289,6 @@ static ssize_t rest_xlat(UNUSED TALLOC_CTX *ctx, char **out, UNUSED size_t outle
return 0; /* FIXME XLAT YIELD */
}

#if 0
static ssize_t rest_xlat_resume(UNUSED TALLOC_CTX *ctx, char **out, UNUSED size_t outlen,
void const *mod_inst, UNUSED void const *xlat_inst,
REQUEST *request, UNUSED char const *fmt)
Expand Down Expand Up @@ -988,10 +988,12 @@ static int mod_bootstrap(CONF_SECTION *conf, void *instance)
inst->xlat_name = cf_section_name2(conf);
if (!inst->xlat_name) inst->xlat_name = cf_section_name1(conf);

#if 0
/*
* Register the rest xlat function
*/
xlat_register(inst, inst->xlat_name, rest_xlat, rest_uri_escape, NULL, 0, 0);
#endif

return 0;
}
Expand Down

0 comments on commit a1f8433

Please sign in to comment.