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

Function tls_dir_for_gateway

crates/openshell-cli/src/tls.rs:116–120  ·  view source on GitHub ↗

Resolve the TLS cert directory for a known gateway name.

(name: &str)

Source from the content-addressed store, hash-verified

114
115/// Resolve the TLS cert directory for a known gateway name.
116fn tls_dir_for_gateway(name: &str) -> Option<PathBuf> {
117 let safe_name = sanitize_name(name);
118 let base = xdg_config_dir().ok()?.join("openshell").join("gateways");
119 Some(base.join(safe_name).join("mtls"))
120}
121
122/// Fallback TLS directory resolution from a server URL.
123///

Callers

nothing calls this directly

Calls 2

sanitize_nameFunction · 0.85
xdg_config_dirFunction · 0.70

Tested by

no test coverage detected