mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-17 23:50:11 -05:00
Config option for verifying federation certificates (MSC 1711) (#4967)
This commit is contained in:
parent
788163e204
commit
6824ddd93d
8 changed files with 158 additions and 17 deletions
|
|
@ -39,6 +39,7 @@ from synapse.util.logcontext import LoggingContext
|
|||
from tests.http import ServerTLSContext
|
||||
from tests.server import FakeTransport, ThreadedMemoryReactorClock
|
||||
from tests.unittest import TestCase
|
||||
from tests.utils import default_config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ class MatrixFederationAgentTests(TestCase):
|
|||
|
||||
self.agent = MatrixFederationAgent(
|
||||
reactor=self.reactor,
|
||||
tls_client_options_factory=ClientTLSOptionsFactory(None),
|
||||
tls_client_options_factory=ClientTLSOptionsFactory(default_config("test")),
|
||||
_well_known_tls_policy=TrustingTLSPolicyForHTTPS(),
|
||||
_srv_resolver=self.mock_resolver,
|
||||
_well_known_cache=self.well_known_cache,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue