From c10ba5a49a9b04a509beb6af517eaefbe5c27a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 26 Mar 2023 22:04:15 +0200 Subject: [PATCH] Add revocation to the CLI --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.rs b/src/config.rs index 2fdc887..bf67674 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,6 +26,8 @@ pub struct Config { header_optional: Vec, #[arg(short = 'p', long, default_value_t = NonZeroU64::new(15552000).unwrap())] cryptoperiod: NonZeroU64, + #[arg(short, long, default_value_t = 1728000)] + revocation: u64, #[arg(short = 'x', long, default_value_t = 1296000)] expiration: u64, #[arg(short, long, action = clap::ArgAction::Count)] @@ -73,6 +75,10 @@ impl Config { &self.header_optional } + pub fn revocation(&self) -> u64 { + self.revocation + } + pub fn verbosity(&self) -> log::LevelFilter { crate::logs::log_level(self.verbose) }