brinkhaustools::licence

Function evaluate_licence

Source
pub fn evaluate_licence(
    licence: &SignedLicence,
    ctx: &EvaluationContext<'_>,
) -> LicenceState
Expand description

Check one licence against the context. Order: signature first — nothing in an unauthenticated payload is reported as if it were true — then product, variant, hardware, time.