MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_deps_aaa_url

Function get_deps_aaa_url

modules/auth_aaa/authaaa_mod.c:106–113  ·  view source on GitHub ↗

create a dependency to "auth" module if any of the digest auth * functions are used from the script - we do a small trick here and * hook on the 'aaa_url' mandatory param to run the check, even if the * param value is not involved in the test */

Source from the content-addressed store, hash-verified

104 * hook on the 'aaa_url' mandatory param to run the check, even if the
105 * param value is not involved in the test */
106static module_dependency_t *get_deps_aaa_url(const param_export_t *param)
107{
108 if (is_script_func_used("aaa_www_authorize", -1) ||
109 is_script_func_used("aaa_proxy_authorize", -1) )
110 return alloc_module_dep(MOD_TYPE_DEFAULT, "auth", DEP_ABORT);
111
112 return NULL;
113}
114
115static const dep_export_t deps = {
116 { /* OpenSIPS module dependencies */

Callers

nothing calls this directly

Calls 2

is_script_func_usedFunction · 0.85
alloc_module_depFunction · 0.85

Tested by

no test coverage detected