summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/pad.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/pad.rs')
-rw-r--r--openpgp/examples/pad.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/examples/pad.rs b/openpgp/examples/pad.rs
index 32583a42..95625f51 100644
--- a/openpgp/examples/pad.rs
+++ b/openpgp/examples/pad.rs
@@ -39,7 +39,9 @@ fn main() {
// Build a vector of recipients to hand to Encryptor.
let mut recipients =
certs.iter()
- .flat_map(|cert| cert.keys_valid().key_flags(mode.clone()))
+ .flat_map(|cert| {
+ cert.keys().alive().revoked(false).key_flags(mode.clone())
+ })
.map(|ka| Recipient::new(KeyID::wildcard(), ka.key()))
.collect::<Vec<_>>();