Move crypto.rs into common

- Refactor code and move crypto.rs into the common subdirectory.
- Fixed comments
This commit is contained in:
Malte Meiboom
2026-05-06 12:34:21 +02:00
parent bf53af50ec
commit f2260bc335
13 changed files with 45 additions and 47 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
//
// Some defaults
//
//! Defaults
pub const CONFIG_FILE_LOCATION: &'static str = "/etc/husk/config.toml";
+1 -5
View File
@@ -1,8 +1,4 @@
//
// Husk milter
//
// Error typ
//
//! Error typ
use thiserror::Error;
+5 -6
View File
@@ -1,8 +1,6 @@
//
// Husk milter
//
// Context
//
//! HuskContext
//!
//! Keep data in HuskContext while processing a mail.
use anyhow;
use sequoia_openpgp::policy::StandardPolicy;
@@ -11,7 +9,8 @@ use sequoia_openpgp::Cert;
use sequoia_cert_store::CertStore;
use sequoia_directories::Home;
use crate::{config::HuskConfig, crypto};
use crate::config::HuskConfig;
use crate::common::crypto;
use crate::types::mail_context::MailContext;
use crate::types::introducer::Introducer;
+1 -6
View File
@@ -1,11 +1,6 @@
//
// husk-milter
//
// introducers
//
//! introducers
use std::sync::Arc;
use std::collections::HashSet;
use anyhow::Result;
+1 -5
View File
@@ -1,8 +1,4 @@
//
// Husk milter
//
// Mail Context
//
//! Mail Context
use std::sync::Arc;
use bytes::{Bytes, BytesMut};
+1 -5
View File
@@ -1,8 +1,4 @@
//
// Husk milter
//
// Recipient
//
//! Recipient
use anyhow;
use std::sync::Arc;