fingerprint_matches

Function fingerprint_matches 

Source
pub(crate) fn fingerprint_matches(
    cert: &OpenpgpCert,
    fingerprints: &HashSet<OpenpgpFingerprint>,
) -> bool
Expand description

Checks whether an OpenpgpCert matches a set of OpenpgpFingerprints.

Returns true if cert is an accepted OpenpgpCert, based on the fingerprint filter configuration in fingerprints.

If fingerprints is empty, any cert is accepted.

Otherwise, only certs with a matching fingerprint are accepted.