mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
implement Into<rustls::OwnedTrustAnchor> for RustlsOwnedTrustAnchor
This commit is contained in:
parent
4ea0c8457d
commit
70b41cbf78
1 changed files with 15 additions and 6 deletions
|
|
@ -26,12 +26,12 @@ pub struct RustlsOwnedTrustAnchor {
|
|||
}
|
||||
|
||||
impl RustlsOwnedTrustAnchor {
|
||||
pub fn to_owned_trust_anchor(self) -> rustls::OwnedTrustAnchor {
|
||||
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
|
||||
self.subject,
|
||||
self.spki,
|
||||
self.name_constraints,
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
impl<'a> From<&X509Certificate<'a>> for RustlsOwnedTrustAnchor {
|
||||
|
|
@ -53,6 +53,15 @@ impl<'a> From<&X509Certificate<'a>> for RustlsOwnedTrustAnchor {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<rustls::OwnedTrustAnchor> for RustlsOwnedTrustAnchor {
|
||||
fn into(self) -> rustls::OwnedTrustAnchor {
|
||||
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
|
||||
self.subject,
|
||||
self.spki,
|
||||
self.name_constraints,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Trusted {
|
||||
trusted: std::fs::ReadDir,
|
||||
|
|
|
|||
Loading…
Reference in a new issue