From 9438ab4af459356b0db042c973020d6652a9c5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 26 Mar 2023 22:18:42 +0200 Subject: [PATCH] Add the missing revocation_list method --- src/config.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index c7092f0..7637919 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,7 +5,7 @@ use std::collections::HashSet; use std::fs::File; use std::io::{BufRead, BufReader}; use std::num::NonZeroU64; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] @@ -57,6 +57,13 @@ impl Config { &self.domain } + pub fn revocation_list(&self) -> Option<&Path> { + match &self.revocation_list { + Some(p) => Some(p), + None => None, + } + } + pub fn headers(&self) -> &[String] { &self.header }