diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 8209ddb..91aa449 100644 --- a/src/config.rs +++ b/src/config.rs @@ -12,7 +12,7 @@ pub struct Config { pub lock_timeout: u64, #[serde(default = "default_pinentry")] pub pinentry: String, - pub client_cert_path: Option<String>, + pub client_cert_path: Option<std::path::PathBuf>, // backcompat, no longer generated in new configs #[serde(skip_serializing)] pub device_id: Option<String>, @@ -151,8 +151,8 @@ impl Config { } #[must_use] - pub fn client_cert_path(&self) -> String { - self.client_cert_path.clone().unwrap_or_default() + pub fn client_cert_path(&self) -> Option<&std::path::Path> { + self.client_cert_path.as_deref() } #[must_use] |