On Oct 07, 2010 at 15:28, Juha Heinanen jh@tutpro.com wrote:
does www_challenge(realm, flags) know to send its challenge reply statefully or statelessly depending on if t_newtran() has been called or not?
No, you need to send it by hand. At least with ser auth_db, I would: if (!www_authenticate(....)){ ... if ($digest_challenge != "") append_to_reply("%$digest_challenge"); sl_reply("401", "Unauthorized"); }
Andrei P.S.: changing www_challenge() would be trivial, but requires testing. Only auth_send_reply() would need to be changed to use slb.send_reply() and probably a module param. added to select between forced stateless replies (lower processing) or auto replies.