From 2a91141eba2f7870767c9a16e635171f011dc717 Mon Sep 17 00:00:00 2001 From: AndreasHuber-CH Date: Wed, 25 May 2016 15:42:29 +0200 Subject: [PATCH] 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. --- modules/uid_auth_db/authorize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/uid_auth_db/authorize.c b/modules/uid_auth_db/authorize.c index 4b69e7a5c8d..45999470b46 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;