Create a new cert cache with the given CA.
(ca: SandboxCa)
| 84 | impl CertCache { |
| 85 | /// Create a new cert cache with the given CA. |
| 86 | pub fn new(ca: SandboxCa) -> Self { |
| 87 | Self { |
| 88 | ca, |
| 89 | cache: Mutex::new(HashMap::new()), |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /// Get or generate a leaf certificate for the given hostname. |
| 94 | fn get_or_generate(&self, hostname: &str) -> Result<Arc<CertifiedLeaf>> { |
nothing calls this directly
no outgoing calls
no test coverage detected