< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] DIGEST - case sensitive?


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@xxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel