Attached is hack to use HA1 with sofia-sip

Example:
nua_authenticate(nh, SIPTAG_EXPIRES_STR("3600"), NUTAG_AUTH(authentication),
TAG_END())

where authentication is string: Digest-HA1:"realm":user:HA1

Paulo

On Tue, Jan 11, 2011 at 5:42 PM, Paulo Vicentini
<vicentini.pa...@gmail.com>wrote:

> Hi Pekka
>
> Thanks for commenting , I will give it a try.
>
> Regards
> Paulo
>
> On Mon, Jan 10, 2011 at 9:20 PM, Pekka Pessi <ppe...@gmail.com> wrote:
>
>> Hi Paulo,
>>
>> 2010/12/18 Paulo Vicentini <vicentini.pa...@gmail.com>:
>> > Thanks for your tips
>> > If It uses a "Digest-HA1" scheme, it would need to receive the same from
>> the
>> > registrar server (matching schemes). It would be good to be server
>> agnostic
>> > (Digest)
>> > int ca_credentials(...
>> > ... ...
>> > if ((scheme != NULL && !su_casematch(scheme, ca->ca_scheme)) ||
>> > (realm != NULL && !su_strmatch(realm, ca->ca_realm)))
>> > return 0;
>> >
>> > It needs to somehow to ignore above code, maybe checking for
>> "Digest-HA1"
>>
>> Yes, the ca_credentials should somehow magically match the
>> "Digest-HA1" with Digest, and somehow store the HA1 in the
>> auth_client_t structure so that the digest algorithm itself would
>> recognize the HA1. The current authentication client design does not
>> support that very well.
>>
>> --
>> Pekka.Pessi mail at nokia.com
>>
>
>

Attachment: ha1-sofia.patch
Description: Binary data

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to