bump ldap3 fork, initialise aws_lc_rs with single function for ldap and direct tls
Signed-off-by: June Strawberry <june@vern.cc>
This commit is contained in:
@@ -4,7 +4,7 @@ use std::{collections::HashSet, ops::Range, sync::Arc};
|
||||
|
||||
use data::Data;
|
||||
use ruma::{OwnedUserId, RoomAliasId, ServerName, UserId};
|
||||
use tuwunel_core::{Result, Server, error};
|
||||
use tuwunel_core::{Result, Server, err, error};
|
||||
|
||||
use crate::service;
|
||||
|
||||
@@ -130,4 +130,16 @@ impl Service {
|
||||
|
||||
tokens
|
||||
}
|
||||
|
||||
pub fn init_rustls_provider(&self) -> Result {
|
||||
if rustls::crypto::CryptoProvider::get_default().is_none() {
|
||||
rustls::crypto::aws_lc_rs::default_provider()
|
||||
.install_default()
|
||||
.map_err(|_provider| {
|
||||
err!(error!("Error initialising aws_lc_rs rustls crypto backend"))
|
||||
})
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user