mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
fix qop to be RFC compliant (bug #4841)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6485,7 +6485,7 @@ static int build_reply_digest(struct sip_pvt *p, char* orig_header, char* digest
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user