Function
missing_required_server_sans
(
paths: &LocalPaths,
server_sans: &[String],
)
Source from the content-addressed store, hash-verified
| 534 | } |
| 535 | |
| 536 | fn missing_required_server_sans( |
| 537 | paths: &LocalPaths, |
| 538 | server_sans: &[String], |
| 539 | ) -> Result<Vec<CertSan>> { |
| 540 | let required = required_server_sans(server_sans); |
| 541 | let actual = server_cert_sans(&paths.server_crt)?; |
| 542 | Ok(required.difference(&actual).cloned().collect()) |
| 543 | } |
| 544 | |
| 545 | fn server_cert_sans(path: &Path) -> Result<BTreeSet<CertSan>> { |
| 546 | use x509_parser::pem::parse_x509_pem; |