[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serdev
Subject:    [sr-dev] git:master: auc(k): fix error in authentification: Digest
From:       Henning Westerholt <henning.westerholt () 1und1 ! de>
Date:       2010-06-29 10:27:02
Message-ID: 20100629102702.AEAB1EF8075 () rimmer
[Download RAW message or body]

Module: sip-router
Branch: master
Commit: 3f5909fd3ca55aa43148d81a8874eaeaeaf91968
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3f5909fd3ca55aa43148d81a8874eaeaeaf91968


Author: Henning Westerholt <henning.westerholt@1und1.de>
Committer: Henning Westerholt <henning.westerholt@1und1.de>
Date:   Tue Jun 29 12:26:30 2010 +0200

auc(k): fix error in authentification: Digest should be compared case insensitive

---

 modules_k/uac/auth_hdr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/uac/auth_hdr.c b/modules_k/uac/auth_hdr.c
index 350fea4..793cfbc 100644
--- a/modules_k/uac/auth_hdr.c
+++ b/modules_k/uac/auth_hdr.c
@@ -112,7 +112,7 @@ int parse_authenticate_body( str *body, struct authenticate_body \
*auth)  while (p<end && isspace((int)*p)) p++;
 	if (p+AUTHENTICATE_DIGEST_LEN>=end )
 		goto parse_error;
-	if (strncmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
+	if (strncasecmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
 		goto parse_error;
 	p += AUTHENTICATE_DIGEST_LEN;
 	if (!isspace((int)*p))


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic