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

Function env_check_authorization

modules/aaa/mod_authz_core.c:942–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 */
941
942static 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
961static const authz_provider authz_env_provider =
962{

Callers

nothing calls this directly

Calls 1

ap_getword_confFunction · 0.85

Tested by

no test coverage detected