Remove debugging code

This commit is contained in:
Malte Meiboom
2026-05-13 14:02:47 +02:00
parent 4ddc3db6c0
commit 713ff86a9e
4 changed files with 1 additions and 11 deletions
-1
View File
@@ -17,7 +17,6 @@ pub async fn dispatch(cmd: IntroducerCommand, config: HuskConfigContainer) -> Re
remove::dispatch(rm_cmd, config).await?;
},
IntroducerSubcommand::List => {
println!("list");
let context = HuskContext::new(&config.into())?;
for introducer in crypto::get_introducers(
-5
View File
@@ -16,11 +16,6 @@ use crate::types::husk_context::HuskContext;
use crate::types::introducer::Introducer;
pub async fn dispatch(cmd: IntroducerAddCommand, config: HuskConfigContainer) -> Result<()> {
println!("add");
println!(" {:?}", cmd.cert);
println!(" {:?}", cmd.cert_file);
println!(" {:?}", cmd.domains);
let context = HuskContext::new(&config.into())?;
let policy = &context.policy;
let cert_store = &context.cert_store;
-4
View File
@@ -13,10 +13,6 @@ use crate::types::husk_context::HuskContext;
use crate::types::introducer::Introducer;
pub async fn dispatch(cmd: IntroducerRemoveCommand, config: HuskConfigContainer) -> Result<()> {
println!("remove");
println!(" {:?}", cmd.cert);
println!(" {:?}", cmd.demote);
let context = HuskContext::new(&config.into())?;
let policy = &context.policy;
let cert_store = &context.cert_store;
+1 -1
View File
@@ -81,7 +81,7 @@ impl Introducer {
pub fn remove(context: &HuskContext, cert: &ValidCert, _demote: bool)
-> Result<()> {
// Check if the local trust root certificate should be made an
// Check if the local trust root certificate is used as
// introducer, which would be an error.
if cert.fingerprint() == context.local_trust_root.fingerprint() {
return Err(IntroducerError::UnsuitableCertificate.into());