diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-11-17 15:25:31 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-11-17 15:27:00 +0100 |
commit | 3fdbfc4379e64b15fbed468beab7f52c229e6d80 (patch) | |
tree | 73b97796e369ef5ca246333785b166deef4c8bed /openpgp/src/policy.rs | |
parent | 095eed89ee4e6b4f924ff2f43aaadb5fd30c20a7 (diff) |
openpgp: Fix test.
- The test is supported to check that the default is used, so don't
override the default.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index bc9281c0..665536ad 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -2818,17 +2818,16 @@ mod test { p.reject_all_hashes(); for v in set_variants.iter().chain(check_variants.iter()).cloned() { - p.accept_hash(v); assert_eq!( p.hash_cutoff( v, HashAlgoSecurity::SecondPreImageResistance), - ACCEPT.map(Into::into)); + REJECT.map(Into::into)); assert_eq!( p.hash_cutoff( v, HashAlgoSecurity::CollisionResistance), - ACCEPT.map(Into::into)); + REJECT.map(Into::into)); } Ok(()) |