diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-03 07:44:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-03 07:44:36 +0800 |
commit | 1608163840757db6a99593f77c98107900ec33f1 (patch) | |
tree | 2f11411787b9f413a5e6b2def64a61673fa0c4d7 /camel/camel-sasl-digest-md5.c | |
parent | 7b887ab330e6e00b46d260ebdfe512cdf9e9494f (diff) | |
download | gsoc2013-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
Diffstat (limited to 'camel/camel-sasl-digest-md5.c')
-rw-r--r-- | camel/camel-sasl-digest-md5.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |