Skip to main content

judge_file_and_floor

Function judge_file_and_floor 

Source
pub fn judge_file_and_floor(
    keys: &[UpdateKey],
    tag: &str,
    fetched: Option<(&[u8], &str, &[u8])>,
    name: &str,
    size: u64,
    sha256: &str,
) -> (Outcome, SignedFloor)
Expand description

judge_file, and the upgrade floor the manifest signs. The floor is read from the same verified manifest the file is judged against, so a download can refuse on it without trusting what an earlier check saw; it is Absent whenever the manifest did not verify (the outcome says why).