summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/decrypt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tool/src/commands/decrypt.rs')
-rw-r--r--tool/src/commands/decrypt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs
index 748f9c7a..2a3424dd 100644
--- a/tool/src/commands/decrypt.rs
+++ b/tool/src/commands/decrypt.rs
@@ -61,7 +61,7 @@ impl<'a> Helper<'a> {
}
for skb in tsk.subkeys() {
- let key = skb.subkey();
+ let key = skb.key();
if can_encrypt(key, skb.binding_signature()) {
let id = key.fingerprint().to_keyid();
keys.insert(id.clone(), key.clone());