[libsoup] Include the (optional) algorithm param in Digest auth responses
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup] Include the (optional) algorithm param in Digest auth responses
- Date: Mon, 1 Jun 2009 21:39:03 -0400 (EDT)
commit 3dcdf7f79c319a3f392ffef3f26cde025e3a88f3
Author: Dan Winship <danw gnome org>
Date: Mon Jun 1 21:37:55 2009 -0400
Include the (optional) algorithm param in Digest auth responses
Apple's CalDAV server apparently considers it mandatory.
http://bugzilla.gnome.org/show_bug.cgi?id=583091
---
libsoup/soup-auth-digest.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
index 665bac7..4fb3f81 100644
--- a/libsoup/soup-auth-digest.c
+++ b/libsoup/soup-auth-digest.c
@@ -421,7 +421,7 @@ get_authorization (SoupAuth *auth, SoupMessage *msg)
{
SoupAuthDigestPrivate *priv = SOUP_AUTH_DIGEST_GET_PRIVATE (auth);
char response[33], *token;
- char *url;
+ char *url, *algorithm;
GString *out;
SoupURI *uri;
@@ -444,6 +444,10 @@ get_authorization (SoupAuth *auth, SoupMessage *msg)
g_string_append (out, ", ");
soup_header_g_string_append_param (out, "uri", url);
g_string_append (out, ", ");
+ algorithm = soup_auth_digest_get_algorithm (priv->algorithm);
+ soup_header_g_string_append_param (out, "algorithm", algorithm);
+ g_free (algorithm);
+ g_string_append (out, ", ");
soup_header_g_string_append_param (out, "response", response);
if (priv->opaque) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]