Remove debugging code
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user