[reSIProcate] DIGEST - case sensitive?
Jason Fischl
jason at counterpath.com
Wed Sep 13 07:08:06 CDT 2006
There is a method in Data.hxx called isEqualNoCase which is the
preferred method of doing this comparison.
It is also worth defining Digest as a constant in Symbols.hxx as well.
Thanks,
Jason
On 9/13/06, Daniel Pocock <daniel at readytechnology.co.uk> wrote:
>
>
>
> I've just discovered the following comparison in several places in
> Helper.cxx:
>
> if(i->scheme()!="Digest")
> {
> continue;
> }
>
> Unfortunately, this is case sensitive and breaks compatibility with my
> Budgetone, which is sending DIGEST and not Digest
>
> Nothing is logged, except a message about `invalid nonce'
>
> SIP/2.0 403 Invalid nonce.
>
> Is it sufficient for me to replace this code with strcasecmp, or is
> something more elegent required to support other character sets?
>
> Regards,
>
> Daniel
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
More information about the resiprocate-devel
mailing list