| 342 | } |
| 343 | |
| 344 | static const char *set_on_off(int *pvalue, const char *s, apr_pool_t *p) |
| 345 | { |
| 346 | if (!apr_cstr_casecmp("off", s)) { |
| 347 | *pvalue = 0; |
| 348 | } |
| 349 | else if (!apr_cstr_casecmp("on", s)) { |
| 350 | *pvalue = 1; |
| 351 | } |
| 352 | else { |
| 353 | return apr_pstrcat(p, "unknown '", s, |
| 354 | "', supported parameter values are 'on' and 'off'", NULL); |
| 355 | } |
| 356 | return NULL; |
| 357 | } |
| 358 | |
| 359 | |
| 360 | static void add_domain_name(apr_array_header_t *domains, const char *name, apr_pool_t *p) |
no outgoing calls
no test coverage detected