MCPcopy Create free account
hub / github.com/apache/httpd / method_parse_config

Function method_parse_config

modules/aaa/mod_authz_core.c:1026–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026static const char *method_parse_config(cmd_parms *cmd, const char *require_line,
1027 const void **parsed_require_line)
1028{
1029 const char *w, *t;
1030 apr_int64_t *allowed = apr_pcalloc(cmd->pool, sizeof(apr_int64_t));
1031
1032 t = require_line;
1033
1034 while ((w = ap_getword_conf(cmd->temp_pool, &t)) && w[0]) {
1035 int m = ap_method_number_of(w);
1036 if (m == M_INVALID) {
1037 return apr_pstrcat(cmd->pool, "Invalid Method '", w, "'", NULL);
1038 }
1039
1040 *allowed |= (AP_METHOD_BIT << m);
1041 }
1042
1043 *parsed_require_line = allowed;
1044 return NULL;
1045}
1046
1047static const authz_provider authz_method_provider =
1048{

Callers

nothing calls this directly

Calls 2

ap_getword_confFunction · 0.85
ap_method_number_ofFunction · 0.85

Tested by

no test coverage detected