1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-06 06:02:40 +03:00

Use rustls-platform-verifier for cert validation

This simplifies by removing the mutually exclusive `native-roots` and
`webpki-roots` features with something that is suitable for all
platforms.
This commit is contained in:
Quentin Gliech
2024-03-06 11:23:42 +01:00
parent 58d91f91d2
commit 6eb6209bd8
25 changed files with 173 additions and 258 deletions

View File

@@ -67,7 +67,7 @@ impl Options {
#[tracing::instrument(skip_all)]
pub async fn run(self, root: &super::Options) -> anyhow::Result<()> {
use Subcommand as SC;
let http_client_factory = HttpClientFactory::new().await?;
let http_client_factory = HttpClientFactory::new();
match self.subcommand {
SC::Http {
show_headers,

View File

@@ -41,7 +41,7 @@ impl Options {
let config: RootConfig = root.load_config()?;
// We'll need an HTTP client
let http_client_factory = HttpClientFactory::new().await?;
let http_client_factory = HttpClientFactory::new();
let base_url = config.http.public_base.as_str();
let issuer = config.http.issuer.as_ref().map(url::Url::as_str);
let issuer = issuer.unwrap_or(base_url);

View File

@@ -146,7 +146,7 @@ impl Options {
)
.await?;
let http_client_factory = HttpClientFactory::new().await?;
let http_client_factory = HttpClientFactory::new();
let homeserver_connection = SynapseConnection::new(
config.matrix.homeserver.clone(),

View File

@@ -55,7 +55,7 @@ impl Options {
let mailer = mailer_from_config(&config.email, &templates)?;
mailer.test_connection().await?;
let http_client_factory = HttpClientFactory::new().await?;
let http_client_factory = HttpClientFactory::new();
let conn = SynapseConnection::new(
config.matrix.homeserver.clone(),
config.matrix.endpoint.clone(),