Sorry, this has been slipped through... 2009/4/10 Jerry Richards <jer...@tonecommander.com>: > I found a rare sofia bug when answering a "401 Authentication Required" > message if the realm is defined as an IPv6 address (e.g. > "scheme:\"[fe80::204:23ff:fea7:d60a]\":user:password"). The symptom was a > "904 No Matching Challenge" reply to the nua_authenticate().
Oops. The semicolon in the realm is the reason why the API has been defined to use quotes there. > I changed the following lines (from base version 1.12.9+) in > libsofia-sip-ua/iptsec/auth_client.c (diff file also attached). This > modification successfully authenticates the IPv6 formatted realm. Thanks for the patch, I'll push it shortly. --Pekka > 303,308c303,309 > < /* Data is string like "Basic:\"agni\":user1:secret" */ > < if (s && (s = strchr(scheme = s, ':'))) > < *s++ = 0; > < if (s && (s = strchr(realm = s, ':'))) > < *s++ = 0; > < if (s && (s = strchr(user = s, ':'))) > --- >> /* Data is string like "Basic:\"agni\":user1:secret" (IPv4) or > "Basic:\"[fe80::204:23ff:fea7:d60a]\":user1:secret" (IPv6) */ >> if (s && (s = strchr(scheme = s, '\"'))) >> *(s-1) = 0; >> if (s) realm = s++; >> if (s && (s = strchr(s, '\"'))) >> *++s = 0; >> if (s && (s = strchr(user = ++s, ':'))) > > Best Regards, > Jerry > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Sofia-sip-devel mailing list > Sofia-sip-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel > > -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel