You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
Fix the native-certs (and therefore docker) build
This commit is contained in:
@@ -56,8 +56,8 @@ mas-config.workspace = true
|
|||||||
mas-data-model.workspace = true
|
mas-data-model.workspace = true
|
||||||
mas-email.workspace = true
|
mas-email.workspace = true
|
||||||
mas-graphql.workspace = true
|
mas-graphql.workspace = true
|
||||||
mas-handlers = { workspace = true, default-features = false }
|
mas-handlers = { workspace = true }
|
||||||
mas-http = { workspace = true, default-features = false, features = ["axum", "client"] }
|
mas-http = { workspace = true, features = ["axum", "client"] }
|
||||||
mas-i18n.workspace = true
|
mas-i18n.workspace = true
|
||||||
mas-iana.workspace = true
|
mas-iana.workspace = true
|
||||||
mas-keystore.workspace = true
|
mas-keystore.workspace = true
|
||||||
|
@@ -68,10 +68,10 @@ rand_chacha = "0.3.1"
|
|||||||
headers = "0.3.9"
|
headers = "0.3.9"
|
||||||
ulid.workspace = true
|
ulid.workspace = true
|
||||||
|
|
||||||
mas-axum-utils = { workspace = true, default-features = false }
|
mas-axum-utils.workspace = true
|
||||||
mas-data-model.workspace = true
|
mas-data-model.workspace = true
|
||||||
mas-graphql.workspace = true
|
mas-graphql.workspace = true
|
||||||
mas-http = { workspace = true, default-features = false }
|
mas-http.workspace = true
|
||||||
mas-i18n.workspace = true
|
mas-i18n.workspace = true
|
||||||
mas-iana.workspace = true
|
mas-iana.workspace = true
|
||||||
mas-jose.workspace = true
|
mas-jose.workspace = true
|
||||||
@@ -92,8 +92,6 @@ tracing-subscriber.workspace = true
|
|||||||
cookie_store = "0.20.0"
|
cookie_store = "0.20.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["webpki-roots"]
|
|
||||||
|
|
||||||
# Use the native root certificates
|
# Use the native root certificates
|
||||||
native-roots = ["mas-axum-utils/native-roots", "mas-http/native-roots"]
|
native-roots = ["mas-axum-utils/native-roots", "mas-http/native-roots"]
|
||||||
# Use the webpki root certificates
|
# Use the webpki root certificates
|
||||||
|
@@ -43,8 +43,7 @@ fn load_tls_roots_blocking() -> Result<rustls::RootCertStore, NativeRootsLoadErr
|
|||||||
let mut roots = rustls::RootCertStore::empty();
|
let mut roots = rustls::RootCertStore::empty();
|
||||||
let certs = rustls_native_certs::load_native_certs()?;
|
let certs = rustls_native_certs::load_native_certs()?;
|
||||||
for cert in certs {
|
for cert in certs {
|
||||||
let cert = rustls::Certificate(cert.0);
|
roots.add(cert)?;
|
||||||
roots.add(&cert)?;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if roots.is_empty() {
|
if roots.is_empty() {
|
||||||
|
Reference in New Issue
Block a user