瀏覽代碼

auth_ephemeral: 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.
AndreasHuber-CH 9 年之前
父節點
當前提交
32ef6dfc9b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/auth_ephemeral/authorize.c

+ 1 - 1
modules/auth_ephemeral/authorize.c

@@ -101,7 +101,7 @@ static inline int do_auth(struct sip_msg *_m, struct hdr_field *_h, str *_realm,
 	ret = eph_auth_api.check_response(&cred->digest, _method, ha1);
 	if (ret == AUTHENTICATED)
 	{
-		if (eph_auth_api.post_auth(_m, _h) != AUTHENTICATED)
+		if (eph_auth_api.post_auth(_m, _h, ha1) != AUTHENTICATED)
 		{
 			return AUTH_ERROR;
 		}