aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-04 15:04:52 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-04 15:04:52 +0000
commit92533ddb72c9aae70161f52c9e905a8123e5560c (patch)
tree21707fb5275cca8897db5aa0030050f160c7cc52
parentf96320e79e889053cc8184072e5f20ffe0e2420e (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@36939 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e67f2789e..5c373bfec 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4324,7 +4324,7 @@ static int transmit_response_with_allow(struct sip_pvt *p, char *msg, struct sip
static int transmit_response_with_auth(struct sip_pvt *p, char *msg, struct sip_request *req, char *randdata, int reliable, char *header, int stale)
{
struct sip_request resp;
- char tmp[256];
+ char tmp[512];
int seqno = 0;
if (reliable && (sscanf(get_header(req, "CSeq"), "%d ", &seqno) != 1)) {
@@ -4333,7 +4333,7 @@ static int transmit_response_with_auth(struct sip_pvt *p, char *msg, struct sip_
}
/* Stale means that they sent us correct authentication, but
based it on an old challenge (nonce) */
- snprintf(tmp, sizeof(tmp), "Digest realm=\"%s\", nonce=\"%s\"%s", global_realm, randdata, stale ? ", stale=true" : "");
+ snprintf(tmp, sizeof(tmp), "Digest algorithm=MD5, realm=\"%s\", nonce=\"%s\"%s", global_realm, randdata, stale ? ", stale=true" : "");
respprep(&resp, p, msg, req);
add_header(&resp, header, tmp);
add_header_contentLength(&resp, 0);