summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-15 06:00:16 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-15 06:00:16 +0000
commit55d89cfea03b93a82c8c00b9bebbec2d689705c4 (patch)
treef83986c67eab2df6b0584705775799f63cdee2fa /channels
parent06fde4bfafaff33006359fb9e0ea965b0236e7af (diff)
Sat Feb 15 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2d49f1365..b9f235c3c 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1512,7 +1512,7 @@ static int transmit_response_with_auth(struct sip_pvt *p, char *msg, struct sip_
{
struct sip_request resp;
char tmp[256];
- snprintf(tmp, sizeof(tmp), "DIGEST realm=\"asterisk\", nonce=\"%s\"", randdata);
+ snprintf(tmp, sizeof(tmp), "Digest realm=\"asterisk\", nonce=\"%s\"", randdata);
respprep(&resp, p, msg, req);
add_header(&resp, "Proxy-Authenticate", tmp);
add_header(&resp, "Content-Length", "0");
@@ -2517,7 +2517,7 @@ static int reply_digest(struct sip_pvt *p, struct sip_request *req, char *header
strncpy(tmp, get_header(req, header),sizeof(tmp) - 1);
c = tmp;
- c+=strlen("DIGEST ");
+ c+=strlen("Digest ");
while (c) {
while (*c && (*c < 33)) c++;
if (!*c)
@@ -2561,7 +2561,7 @@ static int reply_digest(struct sip_pvt *p, struct sip_request *req, char *header
snprintf(resp,sizeof(resp),"%s:%s:%s",a1_hash,nonce,a2_hash);
md5_hash(resp_hash,resp);
- snprintf(digest,digest_len,"DIGEST username=\"%s\", realm=\"%s\", algorithm=\"MD5\", uri=\"%s\", nonce=\"%s\", response=\"%s\"",p->peername,realm,uri,nonce,resp_hash);
+ snprintf(digest,digest_len,"Digest username=\"%s\", realm=\"%s\", algorithm=\"MD5\", uri=\"%s\", nonce=\"%s\", response=\"%s\"",p->peername,realm,uri,nonce,resp_hash);
return 0;
}