[OpenSER-Devel] Minor bug in uac module uac_auth() function.

Aki Rehn aki.rehn at setera.fi
Mon Oct 22 09:10:54 CEST 2007


Hi,

We were discussing this on #openser yesterday, when someone was asking 
for help. The problem was with uac_auth() function which seemed to fail.

Sample WWW-Authenticate hf:
WWW-Authenticate: Digest 
realm="Foo",nonce="73830a18613da2625e157c0917bc268b.1192975256", 
stale=FALSE, algorithm=MD5

auth_hdr.c didnt accept uppercase "FALSE" as a value. Here's a quick 
fix. Pity that the 1.3.0 is frozen, but maybe someone could please add 
it to the next branch.

--- 8< ---
/usr/local/src/openser-1.2.2-notls/modules/uac$ diff auth_hdr.c 
auth_hdr.orig
247c247
<                               } else if ( !(val.len==5 && 
(val.s[4]=='e' || val.s[4]=='E') &&
---
 >                               } else if ( !(val.len==5 && 
val.s[4]=='e' &&


Br,
Aki




More information about the Devel mailing list