]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: On authentication, pick MD5 for sure.
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 23 Oct 2020 15:26:15 +0000 (17:26 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 3 Nov 2020 19:47:48 +0000 (13:47 -0600)
commita581fcfe0c28bd3290be7b0316b701c0b8206d3f
tree31763865c3d48fa018ce64fb243b45aab505dffa
parentbee2e3e720e1d95094487744ac783292c6328416
chan_sip: On authentication, pick MD5 for sure.

RFC 8760 added new digest-access-authentication schemes. Testing
revealed that chan_sip does not pick MD5 if several schemes are offered
by the User Agent Server (UAS). This change does not implement any of
the new schemes like SHA-256. This change makes sure, MD5 is picked so
UAS with SHA-2 enabled, like the service www.linphone.org/freesip, can
still be used. This should have worked since day one because SIP/2.0
already envisioned several schemes (see RFC 3261 and its augmented BNF
for 'algorithm' which includes 'token' as third alternative; note: if
'algorithm' was not present, MD5 is still assumed even in RFC 7616).

Change-Id: I61ca0b1f74b5ec2b5f3062c2d661cafeaf597fcd
channels/chan_sip.c