libsoup r1144 - in trunk: . libsoup
- From: danw svn gnome org
- To: svn-commits-list gnome org
- Subject: libsoup r1144 - in trunk: . libsoup
- Date: Sat, 26 Jul 2008 13:18:57 +0000 (UTC)
Author: danw
Date: Sat Jul 26 13:18:57 2008
New Revision: 1144
URL: http://svn.gnome.org/viewvc/libsoup?rev=1144&view=rev
Log:
* libsoup/soup-auth-digest.c (soup_auth_digest_parse_algorithm):
if the server response doesn't include an algorithm, it is
supposed to default to MD5. #544681, Mads Chr. Olesen.
Modified:
trunk/ChangeLog
trunk/libsoup/soup-auth-digest.c
Modified: trunk/libsoup/soup-auth-digest.c
==============================================================================
--- trunk/libsoup/soup-auth-digest.c (original)
+++ trunk/libsoup/soup-auth-digest.c Sat Jul 26 13:18:57 2008
@@ -98,9 +98,7 @@
SoupAuthDigestAlgorithm
soup_auth_digest_parse_algorithm (const char *algorithm)
{
- if (!algorithm)
- return SOUP_AUTH_DIGEST_ALGORITHM_NONE;
- else if (!g_ascii_strcasecmp (algorithm, "MD5"))
+ if (!algorithm || !g_ascii_strcasecmp (algorithm, "MD5"))
return SOUP_AUTH_DIGEST_ALGORITHM_MD5;
else if (!g_ascii_strcasecmp (algorithm, "MD5-sess"))
return SOUP_AUTH_DIGEST_ALGORITHM_MD5_SESS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]