[utils] Do not make an exception for SSLv3
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Dec 2014 22:44:50 +0000 (23:44 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Dec 2014 22:45:34 +0000 (23:45 +0100)
SSLv3 is terminally vulnerable to POODLE; web browsers are currently deprecating/removing it.
Closes #4459, fixes #4294

youtube_dl/utils.py

index ac66f3de0c0005795fafc2774f04a90581cde803..5e92bcc7114e5c6c58e7e073f7bb7cfe3f7d59fb 100644 (file)
@@ -390,7 +390,6 @@ def formatSeconds(secs):
 def make_HTTPS_handler(opts_no_check_certificate, **kwargs):
     if hasattr(ssl, 'create_default_context'):  # Python >= 3.4 or 2.7.9
         context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
-        context.options &= ~ssl.OP_NO_SSLv3  # Allow older, not-as-secure SSLv3
         if opts_no_check_certificate:
             context.verify_mode = ssl.CERT_NONE
         try: