Module: kamailio Branch: master Commit: 338e3d8bab15eb3422a9804a83d92c077960203c URL: https://github.com/kamailio/kamailio/commit/338e3d8bab15eb3422a9804a83d92c07...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-04-24T08:32:16+02:00
auth: exported proxy_challenge() to kemi
---
Modified: src/modules/auth/auth_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/338e3d8bab15eb3422a9804a83d92c07... Patch: https://github.com/kamailio/kamailio/commit/338e3d8bab15eb3422a9804a83d92c07...
---
diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c index e522538e415..5538ffb4f03 100644 --- a/src/modules/auth/auth_mod.c +++ b/src/modules/auth/auth_mod.c @@ -1110,6 +1110,14 @@ static int ki_www_challenge(struct sip_msg *msg, str* realm, int flags) return auth_challenge_hftype(msg, realm, flags, HDR_AUTHORIZATION_T); }
+/** + * + */ +static int ki_proxy_challenge(struct sip_msg *msg, str* realm, int flags) +{ + return auth_challenge_hftype(msg, realm, flags, HDR_PROXYAUTH_T); +} + /** * */ @@ -1272,6 +1280,11 @@ static sr_kemi_t sr_kemi_auth_exports[] = { { SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init("auth"), str_init("proxy_challenge"), + SR_KEMIP_INT, ki_proxy_challenge, + { SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { str_init("auth"), str_init("pv_auth_check"), SR_KEMIP_INT, pv_auth_check, { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_INT,