Skip to content

Commit

Permalink
auth: expose www_challenge() to kemi
Browse files Browse the repository at this point in the history
- GH #3423
  • Loading branch information
miconda committed Apr 21, 2023
1 parent 8a144a8 commit b65c19f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/modules/auth/auth_mod.c
Expand Up @@ -1102,6 +1102,14 @@ static int www_challenge(struct sip_msg *msg, char* realm, char *flags)
return -1;
}

/**
*
*/
static int ki_www_challenge(struct sip_msg *msg, str* realm, int flags)
{
return auth_challenge_hftype(msg, realm, flags, HDR_AUTHORIZATION_T);
}

/**
*
*/
Expand Down Expand Up @@ -1259,6 +1267,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("www_challenge"),
SR_KEMIP_INT, ki_www_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,
Expand Down

0 comments on commit b65c19f

Please sign in to comment.