]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config_transport: Tell pjproject to allow all SSL/TLS protocols 30/2830/1
authorGeorge Joseph <gjoseph@digium.com>
Sat, 7 May 2016 19:39:25 +0000 (13:39 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 13 May 2016 14:50:59 +0000 (09:50 -0500)
commit8bf050b853d7b11afe8db115fe63c5f3354788f5
treec57e2faa2a4ca8c0154a7eef33de0c43896b0b12
parent4fc2c98369b0f4ffa3931d08cd91681caf548eed
config_transport:  Tell pjproject to allow all SSL/TLS protocols

The default tls settings for pjproject only allow TLS 1, TLS 1.1 and TLS 1.2.
SSL is not allowed.   So, even if you specify "sslv3" for a transport method,
it's silently ignored and one of the TLS protocols is used.  This was a new
behavior of pjsip_tls_setting_default() in 2.4 (when tls.proto was added) that
we never caught.

Now we need to set tls.proto = 0 after we call pjsip_tls_setting_default().
This tells pjproject to set the socket protocol to match the method.

ASTERISK-26004 #close

Change-Id: Icfb55c1ebe921298dedb4b1a1d3bdc3ca41dd078
res/res_pjsip/config_transport.c