pub(crate) fn check_cert(
cert: &WanKeyRecord,
agent: &str,
observed_key: &[u8],
pin_since: i64,
now: i64,
) -> Result<(), &'static str>Expand description
The certificate’s own checks, none of which need the network: it is a
chain-valid certificate by some install, for this agent and channel lan
and exactly the key shown, issued close to now and after the pin it would
replace. Whether the install is trusted is instance_trust’s.