MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-supervisor-network/src/l7/tls.rs:86–91  ·  view source on GitHub ↗

Create a new cert cache with the given CA.

(ca: SandboxCa)

Source from the content-addressed store, hash-verified

84impl 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>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected