From 2c1a863ffb7b8b3d4879d634308d06a2ad7222b7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 20 Nov 2014 15:11:42 +0000 Subject: [PATCH] [WebUI] Modify SSL Context to allow >=TLSv1 protocol * The TLSv1_METHOD is a fixed protocol version so this change will allow higher versions to be used where possible. --- deluge/ui/web/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index ede561f91..debc1949f 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -584,7 +584,8 @@ class ServerContextFactory: def getContext(self): """Creates an SSL context.""" - ctx = SSL.Context(SSL.TLSv1_METHOD) + ctx = SSL.Context(SSL.SSLv23_METHOD) + ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3) deluge_web = component.get("DelugeWeb") log.debug("Enabling SSL using:") log.debug("Pkey: %s", deluge_web.pkey)