diff options
Diffstat (limited to 'openpgp/src/cert/amalgamation.rs')
-rw-r--r-- | openpgp/src/cert/amalgamation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs index 169898a8..edb86851 100644 --- a/openpgp/src/cert/amalgamation.rs +++ b/openpgp/src/cert/amalgamation.rs @@ -1156,7 +1156,7 @@ impl<'a, C> ValidComponentAmalgamation<'a, C> pub fn self_signatures(&self) -> impl Iterator<Item=&Signature> + Send + Sync { std::ops::Deref::deref(self).self_signatures() .filter(move |sig| self.cert.policy().signature(sig, - HashAlgoSecurity::SecondPreImageResistance).is_ok()) + self.hash_algo_security).is_ok()) } /// The component's third-party certifications. @@ -1175,7 +1175,7 @@ impl<'a, C> ValidComponentAmalgamation<'a, C> pub fn self_revocations(&self) -> impl Iterator<Item=&Signature> + Send + Sync { std::ops::Deref::deref(self).self_revocations() .filter(move |sig|self.cert.policy().signature(sig, - HashAlgoSecurity::SecondPreImageResistance).is_ok()) + self.hash_algo_security).is_ok()) } /// The component's revocations that were issued by other |