summaryrefslogtreecommitdiff
path: root/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-05-16 09:50:27 -0300
committerdrebs <drebs@leap.se>2013-05-16 09:50:27 -0300
commitb8da398b0ab4f7df3fb37785a1f9f3777053bb53 (patch)
treea079cc20ce06d360329d6751aa2915a1fe576268 /src/leap/soledad
parentf216391f92ac0a52e11e9b13c149c8d40b446aeb (diff)
parente5098575632e9c5eaf4aba4a17cc4506196662df (diff)
Merge branch 'bug/ssl_hostname_check' of git://github.com/chiiph/soledad into develop
Diffstat (limited to 'src/leap/soledad')
-rw-r--r--src/leap/soledad/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py
index 4e1fbd6f..8bdb82a0 100644
--- a/src/leap/soledad/__init__.py
+++ b/src/leap/soledad/__init__.py
@@ -998,8 +998,7 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection):
self.sock = ssl.wrap_socket(sock,
ca_certs=SOLEDAD_CERT,
cert_reqs=ssl.CERT_REQUIRED)
- # TODO: enable this when the certificate is fixed
- #match_hostname(self.sock.getpeercert(), self.host)
+ match_hostname(self.sock.getpeercert(), self.host)
old__VerifiedHTTPSConnection = http_client._VerifiedHTTPSConnection