diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-17 17:15:00 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-18 11:27:21 +0100 |
commit | df9251ae12f937aa16645e143e06be647a690cfd (patch) | |
tree | 74e380fe52dc5f2a85a6cd02253138b2ac920355 /openpgp/src/packet_pile.rs | |
parent | 0bcdaa26f0e2201add9795b55c587bf384f3183e (diff) |
openpgp: Return iterator over bad signatures.
- This allows us to store verification errors with the signatures.
- See #619.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs index 02758608..259716d6 100644 --- a/openpgp/src/packet_pile.rs +++ b/openpgp/src/packet_pile.rs @@ -98,7 +98,7 @@ use crate::parse::Cookie; /// let cert = Cert::try_from(pp)?; /// if let NotAsFarAsWeKnow = cert.revocation_status(policy, None) { /// // revocation signature is broken and the key is not definitely revoked -/// assert_eq!(cert.bad_signatures().len(), 1); +/// assert_eq!(cert.bad_signatures().count(), 1); /// } /// # else { /// # unreachable!(); |