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

Function cfg_validate

modules/auth_aaa/authaaa_mod.c:243–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241
242
243static int cfg_validate(void)
244{
245 /* if auth API already loaded, it is fine */
246 if (auth_api.pre_auth)
247 return 1;
248
249 if (is_script_func_used("aaa_www_authorize", -1) ||
250 is_script_func_used("aaa_proxy_authorize", -1) ) {
251 LM_ERR("aaa_xxx_authorize() was found, but module started without "
252 "auth support/binding, better restart\n");
253 return 0;
254 }
255
256 return 0;
257}

Callers

nothing calls this directly

Calls 1

is_script_func_usedFunction · 0.85

Tested by

no test coverage detected