[evolution-patches] fix for bug #45712



oops, got carried away with quoting string values since a bunc seem to
need them and others don't want them. oh well.

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.1836
diff -u -r1.1836 ChangeLog
--- ChangeLog	25 Jun 2003 15:43:46 -0000	1.1836
+++ ChangeLog	1 Jul 2003 22:15:23 -0000
@@ -1,3 +1,9 @@
+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-06-25  Jeffrey Stedfast  <fejj ximian com>
 
 	* camel-folder-summary.h: Added prototype for
Index: camel-sasl-digest-md5.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/camel-sasl-digest-md5.c,v
retrieving revision 1.18
diff -u -r1.18 camel-sasl-digest-md5.c
--- camel-sasl-digest-md5.c	25 Feb 2003 19:43:22 -0000	1.18
+++ camel-sasl-digest-md5.c	1 Jul 2003 22:15:24 -0000
@@ -42,6 +42,8 @@
 
 #define PARANOID(x) x
 
+/* Implements rfc2831 */
+
 CamelServiceAuthType camel_sasl_digest_md5_authtype = {
 	N_("DIGEST-MD5"),
 
@@ -743,18 +745,17 @@
 	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 @@
 	}
 	
 	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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]