summaryrefslogtreecommitdiffstats
path: root/ipc/examples/gpg-agent-sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/examples/gpg-agent-sign.rs')
-rw-r--r--ipc/examples/gpg-agent-sign.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs
index b5f32a9c..a80f3935 100644
--- a/ipc/examples/gpg-agent-sign.rs
+++ b/ipc/examples/gpg-agent-sign.rs
@@ -39,9 +39,10 @@ fn main() {
// Construct a KeyPair for every signing-capable (sub)key.
let mut signers = certs.iter().flat_map(|cert| {
- cert.keys().alive().revoked(false).for_signing().filter_map(|ka| {
- KeyPair::new(&ctx, ka.key()).ok()
- })
+ cert.keys().policy(None).alive().revoked(false).for_signing()
+ .filter_map(|ka| {
+ KeyPair::new(&ctx, ka.key()).ok()
+ })
}).collect::<Vec<KeyPair>>();
// Compose a writer stack corresponding to the output format and