summaryrefslogtreecommitdiff
path: root/src/leap/soledad
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/soledad')
-rw-r--r--src/leap/soledad/client/_http.py2
-rw-r--r--src/leap/soledad/client/http_target/__init__.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/soledad/client/_http.py b/src/leap/soledad/client/_http.py
index 2a6b9e39..aa856de6 100644
--- a/src/leap/soledad/client/_http.py
+++ b/src/leap/soledad/client/_http.py
@@ -28,7 +28,7 @@ from treq.client import HTTPClient as _HTTPClient
from zope.interface import implementer
-from leap.common.certs import get_compatible_ssl_context_factory
+from leap.common.http import getPolicyForHTTPS
__all__ = ['HTTPClient', 'PinnedTokenAgent']
diff --git a/src/leap/soledad/client/http_target/__init__.py b/src/leap/soledad/client/http_target/__init__.py
index b67d03f6..db6e9cef 100644
--- a/src/leap/soledad/client/http_target/__init__.py
+++ b/src/leap/soledad/client/http_target/__init__.py
@@ -27,7 +27,7 @@ import os
from twisted.web.client import Agent
from twisted.internet import reactor
-from leap.common.certs import get_compatible_ssl_context_factory
+from leap.common.http import getPolicyForHTTPS
from leap.soledad.common.log import getLogger
from leap.soledad.client.http_target.send import HTTPDocSender
from leap.soledad.client.http_target.api import SyncTargetAPI
@@ -87,7 +87,7 @@ class SoledadHTTPSyncTarget(SyncTargetAPI, HTTPDocSender, HTTPDocFetcher):
self._insert_doc_cb = None
# Twisted default Agent with our own ssl context factory
- factory = get_compatible_ssl_context_factory(cert_file)
+ factory = getPolicyForHTTPS(cert_file)
self._http = Agent(reactor, factory)
if DO_STATS: