[control] Domi CA and UI sign-in: intermediate renewal by CSR with manual offline signing, domi host certificates, device requests approved by code, one-time PKCS#12 installs, revocation; Remote-User trusted only with edge's per-boot proof
This commit is contained in:
@@ -159,6 +159,10 @@ impl DeviceTrust {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn allowed(&self) -> usize {
|
||||
self.allow.len()
|
||||
}
|
||||
|
||||
pub fn allows(&self, cert_sha256: &[u8]) -> bool {
|
||||
<[u8; 32]>::try_from(cert_sha256).is_ok_and(|d| self.allow.contains(&d))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user