Add SASL SCRAM-SHA-256 and SCRAM-SHA-512

This commit is contained in:
Jean Chevronnet 2026-07-12 01:34:53 +00:00
parent 172e50c748
commit 496c0f99a6
No known key found for this signature in database
8 changed files with 569 additions and 58 deletions

View file

@ -35,7 +35,8 @@ async fn main() -> Result<()> {
let services: Vec<Box<dyn engine::service::Service>> = vec![Box::new(NickServ {
uid: format!("{}AAAAAA", cfg.server.sid),
})];
let db = engine::db::Db::open("fedserv.db.jsonl");
let mut db = engine::db::Db::open("fedserv.db.jsonl");
db.scram_iterations = cfg.server.scram_iterations;
let engine = Engine::new(services, db);
let addr = format!("{}:{}", cfg.uplink.host, cfg.uplink.port);