[sr-dev] git:master:d415dd70: auth_db: add ha1 parameter in auth_api.post_auth

AndreasHuber-CH andreas.huber at nagra.com
Wed May 25 21:42:22 CEST 2016


Module: kamailio
Branch: master
Commit: d415dd70c56ed88489856a7888cb4acae76615db
URL: https://github.com/kamailio/kamailio/commit/d415dd70c56ed88489856a7888cb4acae76615db

Author: AndreasHuber-CH <andreas.huber at nagra.com>
Committer: AndreasHuber-CH <andreas.huber at nagra.com>
Date: 2016-05-25T15:37:30+02:00

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/auth_db/authorize.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d415dd70c56ed88489856a7888cb4acae76615db.diff
Patch: https://github.com/kamailio/kamailio/commit/d415dd70c56ed88489856a7888cb4acae76615db.patch

---

diff --git a/modules/auth_db/authorize.c b/modules/auth_db/authorize.c
index e65a300..0291d01 100644
--- a/modules/auth_db/authorize.c
+++ b/modules/auth_db/authorize.c
@@ -299,7 +299,7 @@ static int digest_authenticate_hdr(sip_msg_t* msg, str *realm,
 	ret = auth_api.check_response(&(cred->digest), method, ha1);
 	if(ret==AUTHENTICATED) {
 		ret = AUTH_OK;
-		switch(auth_api.post_auth(msg, h)) {
+		switch(auth_api.post_auth(msg, h, ha1)) {
 			case AUTHENTICATED:
 				generate_avps(msg, result);
 				break;




More information about the sr-dev mailing list