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

Function required_server_sans

crates/openshell-server/src/certgen.rs:522–534  ·  view source on GitHub ↗
(server_sans: &[String])

Source from the content-addressed store, hash-verified

520}
521
522fn required_server_sans(server_sans: &[String]) -> BTreeSet<CertSan> {
523 DEFAULT_SERVER_SANS
524 .iter()
525 .copied()
526 .chain(server_sans.iter().map(String::as_str))
527 .filter_map(|san| {
528 san.parse::<IpAddr>()
529 .map(CertSan::Ip)
530 .ok()
531 .or_else(|| san.is_ascii().then(|| CertSan::Dns(san.to_string())))
532 })
533 .collect()
534}
535
536fn missing_required_server_sans(
537 paths: &LocalPaths,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected