aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-03 07:44:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-03 07:44:36 +0800
commit1608163840757db6a99593f77c98107900ec33f1 (patch)
tree2f11411787b9f413a5e6b2def64a61673fa0c4d7
parent7b887ab330e6e00b46d260ebdfe512cdf9e9494f (diff)
downloadgsoc2013-evolution-1608163840757db6a99593f77c98107900ec33f1.tar.gz
gsoc2013-evolution-1608163840757db6a99593f77c98107900ec33f1.tar.zst
gsoc2013-evolution-1608163840757db6a99593f77c98107900ec33f1.zip
Don't quote the charset value, the qop value, nor the response value.
2003-07-01 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl-digest-md5.c (digest_response): Don't quote the charset value, the qop value, nor the response value. Fixes bug #45712. svn path=/trunk/; revision=21730
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-sasl-digest-md5.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 4e53989aea..6b6bbced42 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,11 @@
2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-sasl-digest-md5.c (digest_response): Don't quote the
+ charset value, the qop value, nor the response value. Fixes bug
+ #45712.
+
+2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
+
* camel-mime-utils.c (header_format_date): Use gmtime_r() instead
of using gmtime() and memcpy() to try and be "atomic".
diff --git a/camel/camel-sasl-digest-md5.c b/camel/camel-sasl-digest-md5.c
index 7c50c4f4a7..8d7a704755 100644
--- a/camel/camel-sasl-digest-md5.c
+++ b/camel/camel-sasl-digest-md5.c
@@ -42,6 +42,8 @@
#define PARANOID(x) x
+/* Implements rfc2831 */
+
CamelServiceAuthType camel_sasl_digest_md5_authtype = {
N_("DIGEST-MD5"),
@@ -743,18 +745,17 @@ digest_response (struct _DigestResponse *resp)
g_byte_array_append (buffer, "\",nc=", 5);
g_byte_array_append (buffer, resp->nc, 8);
- g_byte_array_append (buffer, ",qop=\"", 6);
+ g_byte_array_append (buffer, ",qop=", 5);
str = qop_to_string (resp->qop);
g_byte_array_append (buffer, str, strlen (str));
- g_byte_array_append (buffer, "\",digest-uri=\"", 14);
+ g_byte_array_append (buffer, ",digest-uri=\"", 13);
buf = digest_uri_to_string (resp->uri);
g_byte_array_append (buffer, buf, strlen (buf));
g_free (buf);
- g_byte_array_append (buffer, "\",response=\"", 12);
+ g_byte_array_append (buffer, "\",response=", 11);
g_byte_array_append (buffer, resp->resp, 32);
- g_byte_array_append (buffer, "\"", 1);
if (resp->maxbuf > 0) {
g_byte_array_append (buffer, ",maxbuf=", 8);
@@ -764,9 +765,8 @@ digest_response (struct _DigestResponse *resp)
}
if (resp->charset) {
- g_byte_array_append (buffer, ",charset=\"", 10);
+ g_byte_array_append (buffer, ",charset=", 9);
g_byte_array_append (buffer, resp->charset, strlen (resp->charset));
- g_byte_array_append (buffer, "\"", 1);
}
if (resp->cipher != CIPHER_INVALID) {