PJSIP: Improve error handling in digest authenticator
authorJonathan Rose <jrose@digium.com>
Thu, 7 Nov 2013 23:42:31 +0000 (23:42 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 7 Nov 2013 23:42:31 +0000 (23:42 +0000)
commit3c645e8520794b8ba7644897a07c2db4e238bf24
tree754f1aece9d80e8f3a26b7e3a09408e71ec981c7
parent7d0d1a1efb1d484cce28137f1abc1a6ece61d7e9
PJSIP: Improve error handling in digest authenticator

Previously, regardless of whether failure to authenticate was due to
lacking any authentication or actually failing authentication, the
Digest Authenticator would simply return that a challenge was still
needed. It will continue to do that when no authentication information
is in the received SIP digest, but when authentication information
is present and does not pass authentication, that will be treated as
an authentication error. This is to ensure that PJSIP will issue
security events indicated failed auths.
........

Merged revisions 402537 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_authenticator_digest.c