Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use trustRoot instead of verify for request verification #147

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

anoadragon453
Copy link
Member

Use trustRoot instead of verify for specifying CertificateOptions, as verify has essentially been made deprecated.

This takes the same approach as the implementation in Synapse:

https://github.com/matrix-org/synapse/blob/63b75cf7d70db28924f29bce55b55f567d8053f2/synapse/crypto/context_factory.py#L130-L139

I'm not sure if there's a way to provide a default value to getboolean, so I've added a check for it. The setup of the config file is that the default values are supposed to be put at the top, and then overridden later on in the config file, but that all seems pretty flaky. The whole config file needs a refactor which is tracked at #101.

@anoadragon453 anoadragon453 requested a review from a team April 26, 2019 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants