Skip to content

Commit

Permalink
uid_auth_db: add ha1 parameter in auth_api.post_auth
Browse files Browse the repository at this point in the history
auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth.
  • Loading branch information
AndreasHuber-CH committed May 25, 2016
1 parent 32ef6df commit 2a91141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/uid_auth_db/authorize.c
Expand Up @@ -288,7 +288,7 @@ static inline int check_all_ha1(struct sip_msg* msg, struct hdr_field* hdr,
}

if (!check_response(dig, method, ha1)) {
if (auth_api.post_auth(msg, hdr) == AUTHENTICATED) {
if (auth_api.post_auth(msg, hdr, ha1) == AUTHENTICATED) {
generate_avps(*res, row);
return 0;
}
Expand Down Expand Up @@ -416,7 +416,7 @@ static inline int authenticate(struct sip_msg* msg, str* realm, authdb_table_inf

/* Recalculate response, it must be same to authorize successfully */
if (!check_response(&(cred->digest), &msg->first_line.u.request.method, ha1)) {
switch(auth_api.post_auth(msg, h)) {
switch(auth_api.post_auth(msg, h, ha1)) {
case ERROR:
case BAD_CREDENTIALS:
ret = -2;
Expand Down

0 comments on commit 2a91141

Please sign in to comment.