Module: kamailio Branch: master Commit: 2a91141eba2f7870767c9a16e635171f011dc717 URL: https://github.com/kamailio/kamailio/commit/2a91141eba2f7870767c9a16e635171f...
Author: AndreasHuber-CH andreas.huber@nagra.com Committer: AndreasHuber-CH andreas.huber@nagra.com Date: 2016-05-25T15:42:29+02:00
uid_auth_db: add ha1 parameter in auth_api.post_auth
auth api was updated to support Authentication-Info header and requires now the ha1 value in post_auth.
---
Modified: modules/uid_auth_db/authorize.c
---
Diff: https://github.com/kamailio/kamailio/commit/2a91141eba2f7870767c9a16e635171f... Patch: https://github.com/kamailio/kamailio/commit/2a91141eba2f7870767c9a16e635171f...
---
diff --git a/modules/uid_auth_db/authorize.c b/modules/uid_auth_db/authorize.c index 4b69e7a..4599947 100644 --- a/modules/uid_auth_db/authorize.c +++ b/modules/uid_auth_db/authorize.c @@ -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; } @@ -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;