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,