mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
refine handling of tls rota Certificate name_constraints (slightly)
This commit is contained in:
parent
ffb573f5dc
commit
211e27b759
1 changed files with 11 additions and 11 deletions
|
|
@ -103,17 +103,17 @@ impl<'a> From<&X509Certificate<'a>> for RustlsOwnedTrustAnchor {
|
||||||
b"der decode failed".to_vec()
|
b"der decode failed".to_vec()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
name_constraints: None,
|
name_constraints: match x509.name_constraints() {
|
||||||
// name_constraints: x509.name_constraints().unwrap_or(None).map(|c| c.value.into()),
|
Ok(Some(_)) => {
|
||||||
// may have to pass value thru from certificates parameter
|
log::warn!("Name Constraints ignored");
|
||||||
// name_constraints: match x509.name_constraints() {
|
None
|
||||||
// Ok(Some(nc)) => Some(nc.value),
|
}
|
||||||
// Ok(None) => None,
|
Ok(None) => None,
|
||||||
// Err(e) => {
|
Err(e) => {
|
||||||
// log::warn!("failed to extract x509 name_constraints: {}", e);
|
log::warn!("{e}");
|
||||||
// None
|
None
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue