| 940 | */ |
| 941 | |
| 942 | static authz_status env_check_authorization(request_rec *r, |
| 943 | const char *require_line, |
| 944 | const void *parsed_require_line) |
| 945 | { |
| 946 | const char *t, *w; |
| 947 | |
| 948 | /* The 'env' provider will allow the configuration to specify a list of |
| 949 | env variables to check rather than a single variable. This is different |
| 950 | from the previous host based syntax. */ |
| 951 | t = require_line; |
| 952 | while ((w = ap_getword_conf(r->pool, &t)) && w[0]) { |
| 953 | if (apr_table_get(r->subprocess_env, w)) { |
| 954 | return AUTHZ_GRANTED; |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | return AUTHZ_DENIED; |
| 959 | } |
| 960 | |
| 961 | static const authz_provider authz_env_provider = |
| 962 | { |
nothing calls this directly
no test coverage detected