Steps towards encryption

- Added certstore and retrieval of the local trust root.
- Major work on keeping the context between calls to the milter.
- Added a context for an email in processing
- Added Husk specific errors
This commit is contained in:
Malte Meiboom
2025-12-09 12:11:07 +01:00
parent 0f3a05e811
commit 56647806b7
10 changed files with 197 additions and 40 deletions
+7 -7
View File
@@ -2,15 +2,13 @@
// Husk milter
//
use std::{
env,
process,
};
use std::{env, process};
use std::sync::{Arc, Mutex};
pub mod config;
use config::HuskConfig;
use config::{HuskConfig, HuskConfigContainer};
pub mod types;
pub mod crypto;
pub mod daemon;
use daemon::Daemon;
@@ -30,7 +28,9 @@ async fn main() {
log::info!("starting...");
match Daemon::run(&husk_config).await {
let config_container: HuskConfigContainer = Arc::new(Mutex::new(husk_config));
match Daemon::run(config_container).await {
Ok(_) => {
println!("exiting...");
},