summaryrefslogtreecommitdiff
path: root/client/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-11-26 21:06:25 +0100
committerdrebs <drebs@leap.se>2014-12-05 14:38:58 -0200
commite073ff3c736f70fbf0ae9767db9b223becee0b4e (patch)
tree6288aa9d639d13f68a541c873c797ea90cfe56b4 /client/src/leap
parent365fa1603a977040a1891880a66118f196a54ac0 (diff)
force tls v1 in soledad client. Partially fixes #6437
Diffstat (limited to 'client/src/leap')
-rw-r--r--client/src/leap/soledad/client/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py
index 586e3389..4703133c 100644
--- a/client/src/leap/soledad/client/__init__.py
+++ b/client/src/leap/soledad/client/__init__.py
@@ -1335,7 +1335,8 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection):
self.sock = ssl.wrap_socket(sock,
ca_certs=SOLEDAD_CERT,
- cert_reqs=ssl.CERT_REQUIRED)
+ cert_reqs=ssl.CERT_REQUIRED,
+ ssl_version=ssl.PROTOCOL_TLSv1)
match_hostname(self.sock.getpeercert(), self.host)