validate_required_certifications

Function validate_required_certifications 

Source
fn validate_required_certifications(
    trust_anchor_fingerprint_matches: &HashSet<OpenpgpFingerprint>,
) -> impl FnOnce(&NumCertifications, &()) -> Result + '_
Expand description

Validates that the required number of certifications matches the amount of pinned trust anchors.

ยงErrors

Returns an error, if the num_certifications of a ConfigTrustAnchorMode is larger than the number of trust_anchor_fingerprint_matches.