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

Function authn_ap_auth_name

modules/aaa/mod_authn_core.c:356–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356static const char *authn_ap_auth_name(request_rec *r)
357{
358 authn_core_dir_conf *conf;
359 const char *err = NULL, *name;
360
361 conf = (authn_core_dir_conf *) ap_get_module_config(r->per_dir_config,
362 &authn_core_module);
363
364 if (conf->ap_auth_name) {
365 name = ap_expr_str_exec(r, conf->ap_auth_name, &err);
366 if (err) {
367 ap_log_rerror(
368 APLOG_MARK, APLOG_ERR, APR_SUCCESS, r, APLOGNO(02835) "AuthName expression could not be evaluated: %s", err);
369 return NULL;
370 }
371
372 return ap_escape_quotes(r->pool, name);
373 }
374
375 return NULL;
376}
377
378static const command_rec authn_cmds[] =
379{

Callers 1

ap_auth_nameFunction · 0.85

Calls 3

ap_get_module_configFunction · 0.85
ap_expr_str_execFunction · 0.85
ap_escape_quotesFunction · 0.85

Tested by

no test coverage detected