Module: kamailio Branch: master Commit: 8c6f6724a45f496a694882b60fe5cc4516f9e8b6 URL: https://github.com/kamailio/kamailio/commit/8c6f6724a45f496a694882b60fe5cc45...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-04-21T14:57:27+02:00
app_lua: update existing code for changes inside auth module
---
Modified: modules/app_lua/app_lua_exp.c
---
Diff: https://github.com/kamailio/kamailio/commit/8c6f6724a45f496a694882b60fe5cc45... Patch: https://github.com/kamailio/kamailio/commit/8c6f6724a45f496a694882b60fe5cc45...
---
diff --git a/modules/app_lua/app_lua_exp.c b/modules/app_lua/app_lua_exp.c index ae2c8cd..7da5207 100644 --- a/modules/app_lua/app_lua_exp.c +++ b/modules/app_lua/app_lua_exp.c @@ -1102,7 +1102,7 @@ static const luaL_Reg _sr_rr_Map [] = { };
-static int lua_sr_auth_challenge(lua_State *L, int hftype) +static int lua_sr_auth_challenge_hftype(lua_State *L, int hftype) { int ret; str realm = {0, 0}; @@ -1134,7 +1134,7 @@ static int lua_sr_auth_challenge(lua_State *L, int hftype) return app_lua_return_error(L); } realm.len = strlen(realm.s); - ret = _lua_authb.auth_challenge(env_L->msg, &realm, flags, hftype); + ret = _lua_authb.auth_challenge_hftype(env_L->msg, &realm, flags, hftype);
return app_lua_return_int(L, ret); } @@ -1144,7 +1144,7 @@ static int lua_sr_auth_challenge(lua_State *L, int hftype) */ static int lua_sr_auth_www_challenge(lua_State *L) { - return lua_sr_auth_challenge(L, HDR_AUTHORIZATION_T); + return lua_sr_auth_challenge_hftype(L, HDR_AUTHORIZATION_T); }
/** @@ -1152,7 +1152,7 @@ static int lua_sr_auth_www_challenge(lua_State *L) */ static int lua_sr_auth_proxy_challenge(lua_State *L) { - return lua_sr_auth_challenge(L, HDR_PROXYAUTH_T); + return lua_sr_auth_challenge_hftype(L, HDR_PROXYAUTH_T); }
/**