Add the missing revocation_list method

This commit is contained in:
Rodolphe Bréard 2023-03-26 22:18:42 +02:00
parent 1576a990fe
commit 9438ab4af4

View file

@ -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
}