| 1024 | } |
| 1025 | |
| 1026 | static 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 | |
| 1047 | static const authz_provider authz_method_provider = |
| 1048 | { |
nothing calls this directly
no test coverage detected