[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.73,1.510.2.74

russell russell
Thu Aug 4 19:27:48 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv3732/channels

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
fix qop to be RFC compliant (bug #4841)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.73
retrieving revision 1.510.2.74
diff -u -d -r1.510.2.73 -r1.510.2.74
--- chan_sip.c	4 Aug 2005 22:39:23 -0000	1.510.2.73
+++ chan_sip.c	4 Aug 2005 23:31:50 -0000	1.510.2.74
@@ -6485,7 +6485,7 @@
 	md5_hash(resp_hash,resp);
 	/* XXX We hard code our qop to "auth" for now.  XXX */
 	if (!ast_strlen_zero(p->qop))
-		snprintf(digest,digest_len,"Digest username=\"%s\", realm=\"%s\", algorithm=MD5, uri=\"%s\", nonce=\"%s\", response=\"%s\", opaque=\"%s\", qop=\"%s\", cnonce=\"%s\", nc=%s",p->authname,p->realm,uri,p->nonce,resp_hash, p->opaque, "auth", cnonce, "00000001");
+		snprintf(digest,digest_len,"Digest username=\"%s\", realm=\"%s\", algorithm=MD5, uri=\"%s\", nonce=\"%s\", response=\"%s\", opaque=\"%s\", qop=auth, cnonce=\"%s\", nc=00000001",p->authname,p->realm,uri,p->nonce,resp_hash, p->opaque, cnonce);
 	else
 		snprintf(digest,digest_len,"Digest username=\"%s\", realm=\"%s\", algorithm=MD5, uri=\"%s\", nonce=\"%s\", response=\"%s\", opaque=\"%s\"",p->authname,p->realm,uri,p->nonce,resp_hash, p->opaque);
 




More information about the svn-commits mailing list