summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-11-17 17:15:00 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-11-18 11:27:21 +0100
commitdf9251ae12f937aa16645e143e06be647a690cfd (patch)
tree74e380fe52dc5f2a85a6cd02253138b2ac920355 /openpgp/src/crypto
parent0bcdaa26f0e2201add9795b55c587bf384f3183e (diff)
openpgp: Return iterator over bad signatures.
- This allows us to store verification errors with the signatures. - See #619.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r--openpgp/src/crypto/backend/sha1cd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/backend/sha1cd.rs b/openpgp/src/crypto/backend/sha1cd.rs
index 088369c5..c7e362be 100644
--- a/openpgp/src/crypto/backend/sha1cd.rs
+++ b/openpgp/src/crypto/backend/sha1cd.rs
@@ -76,10 +76,10 @@ mod test {
// Check mitigations. First, the illegitimate certification
// should be discarded.
- assert_eq!(alice.bad_signatures().len(), 1);
+ assert_eq!(alice.bad_signatures().count(), 1);
// Bob's userid also got certified, hence there are two bad
// signatures.
- assert_eq!(bob.bad_signatures().len(), 2);
+ assert_eq!(bob.bad_signatures().count(), 2);
// The mitigation also changes the identities of the keys
// containing the collision attack. This is a good thing,