--- linphone-1.0.0pre8/exosip/jauth.c_orig 2005-02-04 17:09:37.000000000 +0100 +++ linphone-1.0.0pre8/exosip/jauth.c 2005-02-09 20:01:23.232708020 +0100 @@ -237,7 +237,8 @@ "Authentication method not supported. (Digest only).\n")); return -1; } - if (wa->algorithm!=NULL&&0!=osip_strcasecmp("MD5",wa->algorithm)) + /* "MD5" is invalid, but some servers use it. */ + if (wa->algorithm!=NULL&&0!=osip_strcasecmp("MD5",wa->algorithm)&&0!=osip_strcasecmp("\"MD5\"",wa->algorithm)) { OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_ERROR, NULL, @@ -346,7 +347,8 @@ "Authentication method not supported. (Digest only).\n")); return -1; } - if (wa->algorithm!=NULL&&0!=osip_strcasecmp("MD5",wa->algorithm)) + /* "MD5" is invalid, but some servers use it. */ + if (wa->algorithm!=NULL&&0!=osip_strcasecmp("MD5",wa->algorithm)&&0!=osip_strcasecmp("\"MD5\"",wa->algorithm)) { OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_ERROR, NULL,