[utils] Default SSL to TLS. (Fixes #3727)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 12 Sep 2014 05:50:31 +0000 (07:50 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 12 Sep 2014 05:50:31 +0000 (07:50 +0200)
commitaa37e3d486f52b8c7a22dd5255469292a6a6afb9
tree05d389782a6ffef35417795017ba1020c895b212
parentedb53e2dc33c37a8c4cef3ec541084171adeed5b
[utils] Default SSL to TLS. (Fixes #3727)

On 2.x, we now try TLS first, and fall back to the compat 23 (basically anything) afterwards.
On 3.4+, we now use the proper function so that we get all the latest security configurations.
We allow SSLv3 though for the time being, since a lot of older pages use that.
On 3.3, we default to SSLv23 (basically "anything, including TLS") because that has the widest compatibility.
youtube_dl/utils.py