summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client/http_target
diff options
context:
space:
mode:
authorkali kaneko <kali@leap.se>2017-07-17 15:05:17 -0400
committerKali Kaneko <kali@leap.se>2017-07-18 07:22:59 -0400
commit3fad8ef7d05c4366caef215a541bed352753cfd0 (patch)
tree613be30677cdccdccbb55361f0f39a1dcf8217b7 /src/leap/soledad/client/http_target
parent1d79d987cc64d3d19d692babf5d895384c68947b (diff)
fix import
leap.common 0.6.0 renamed this method. we should think about not using the factory directly, since we want to deprecate leap.common.http
Diffstat (limited to 'src/leap/soledad/client/http_target')
-rw-r--r--src/leap/soledad/client/http_target/__init__.py4
1 files changed, 2 insertions, 2 deletions
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: