Skip to main content

verify_entry

Function verify_entry 

Source
pub fn verify_entry(
    data: &[u8],
    key: &QueryKey,
    trusted: &TrustedKeys,
    local: &Solver,
) -> Result<Verified, Rejection>
Expand description

Checks a shared entry file’s contents for key, in this order: the header parses and has this format and version; it names key; its signer is trusted and the signature verifies over every header field; the reply hashes to the signed hash; the signed solver is local’s (name, version and binary), on local’s platform class; the mode is default; and the reply has the shape its command requires.

§Errors

The first check that fails. The caller treats every one as a miss.