[OpenSIPS-Devel] [opensips] digest+m_auth: Allow a domain in the digest username. (#164)

Walter Doekes notifications at github.com
Wed Feb 5 09:44:07 CET 2014


Before this patch, a domain in the digest username was allowed:

    Digest username="abc at domain", realm="domain"

but only if the domain is equal to the realm. This was introduced in
a92bf789 (Juha Heinanen, Mar. 29 2006).

The SIP spec. doesn't mention any such restriction.

This patch undoes that commit and makes sure the whole username is used
when authenticating through `pv_www_authorize` and `pv_proxy_authorize`.
That makes the following valid:

    Digest username="abc at domain", realm="something different"
You can merge this Pull Request by running:

  git pull https://github.com/wdoekes/opensips wjd-allow_domain_in_digest_user

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenSIPS/opensips/pull/164

-- Commit Summary --

  * digest+m_auth: Allow a domain in the digest username.

-- File Changes --

    M modules/auth/auth_mod.c (6)
    M parser/digest/digest.c (7)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/164.patch
https://github.com/OpenSIPS/opensips/pull/164.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/164
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140205/26aa3ebb/attachment.htm>


More information about the Devel mailing list