summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-03 17:38:49 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-04 13:20:26 +0100
commit807eee2432de52715a2e3c7167d5e859ca3315a8 (patch)
treeca712d38feec4caa46c0105f1f0f9d45400c7d55 /ipc
parentdaee0e230c36cec119d523ca33407789b6fd109f (diff)
openpgp: Rename KeyIter filters.
- See #359.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/examples/gpg-agent-sign.rs2
-rw-r--r--ipc/tests/gpg-agent.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs
index f6b4d1ff..5e8c28c6 100644
--- a/ipc/examples/gpg-agent-sign.rs
+++ b/ipc/examples/gpg-agent-sign.rs
@@ -39,7 +39,7 @@ fn main() {
// Construct a KeyPair for every signing-capable (sub)key.
let mut signers = certs.iter().flat_map(|cert| {
- cert.keys_valid().signing_capable().filter_map(|(_, _, key)| {
+ cert.keys_valid().for_signing().filter_map(|(_, _, key)| {
KeyPair::new(&ctx, key).ok()
})
}).collect::<Vec<KeyPair<_>>>();
diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs
index 05aa9ee7..0656bc21 100644
--- a/ipc/tests/gpg-agent.rs
+++ b/ipc/tests/gpg-agent.rs
@@ -95,7 +95,7 @@ fn sign() {
gpg_import(&ctx, &buf);
let keypair = KeyPair::new(
- &ctx, cert.keys_valid().signing_capable().take(1).next().unwrap().2)
+ &ctx, cert.keys_valid().for_signing().take(1).next().unwrap().2)
.unwrap();
let mut message = Vec::new();