diff options
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index a1931c15..3e0dad10 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -764,7 +764,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> { let issuers = sig.get_issuers(); for ka in self.certs.iter() .flat_map(|cert| { - cert.keys().set_policy(self.policy, sig_time) + cert.keys().with_policy(self.policy, sig_time) .key_handles(issuers.iter()) }) { @@ -1759,7 +1759,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { let issuers = sig.get_issuers(); for ka in self.certs.iter() .flat_map(|cert| { - cert.keys().set_policy(self.policy, sig_time) + cert.keys().with_policy(self.policy, sig_time) .key_handles(issuers.iter()) }) { @@ -2276,7 +2276,7 @@ mod test { // sign 30MiB message let mut buf = vec![]; { - let key = cert.keys().set_policy(p, None).for_signing().nth(0).unwrap().key(); + let key = cert.keys().with_policy(p, None).for_signing().nth(0).unwrap().key(); let keypair = key.clone().mark_parts_secret().unwrap() .into_keypair().unwrap(); |