(&self)
| 164 | } |
| 165 | |
| 166 | fn cached_ca_path(&self) -> Option<PathBuf> { |
| 167 | let cache = self.config_dir().map(|p| p.join("ca.pem")); |
| 168 | if cache.as_ref().is_some_and(|p| p.exists() && p.is_file()) { |
| 169 | return cache; |
| 170 | } |
| 171 | |
| 172 | None |
| 173 | } |
| 174 | |
| 175 | #[cfg(not(test))] |
| 176 | fn config_dir(&self) -> Option<PathBuf> { |