summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/changes/feat_configurable_ensure2
-rw-r--r--server/src/leap/soledad/server/__init__.py13
2 files changed, 1 insertions, 14 deletions
diff --git a/server/changes/feat_configurable_ensure b/server/changes/feat_configurable_ensure
index 34a20c86..8abd2ac9 100644
--- a/server/changes/feat_configurable_ensure
+++ b/server/changes/feat_configurable_ensure
@@ -2,4 +2,4 @@ o 'create-user-db' script now can be configured from soledad-server.conf
when generating the user's security document.
o Migrating a user's database to newest design documents is now possible by
using a parameter '--migrate-all' on 'create-user-db' script.
-
+o Remove tsafe monkeypatch from SSL lib, as it was needed for Twisted <12
diff --git a/server/src/leap/soledad/server/__init__.py b/server/src/leap/soledad/server/__init__.py
index fe67e45f..618ccb2b 100644
--- a/server/src/leap/soledad/server/__init__.py
+++ b/server/src/leap/soledad/server/__init__.py
@@ -94,12 +94,6 @@ from u1db.remote import http_app, utils
from ._version import get_versions
-# Keep OpenSSL's tsafe before importing Twisted submodules so we can put
-# it back if Twisted==12.0.0 messes with it.
-from OpenSSL import tsafe
-
-from twisted import version
-
from leap.soledad.server.auth import SoledadTokenAuthMiddleware
from leap.soledad.server.gzip_middleware import GzipMiddleware
from leap.soledad.server.lock_resource import LockResource
@@ -112,13 +106,6 @@ from leap.soledad.server.sync import (
from leap.soledad.common import SHARED_DB_NAME
from leap.soledad.common.couch import CouchServerState
-old_tsafe = tsafe
-
-if version.base() == "12.0.0":
- # Put OpenSSL's tsafe back into place. This can probably be removed if we
- # come to use Twisted>=12.3.0.
- sys.modules['OpenSSL.tsafe'] = old_tsafe
-
# ----------------------------------------------------------------------------
# Soledad WSGI application
# ----------------------------------------------------------------------------