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:
+7
-7
@@ -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...");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user