diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-08-04 00:27:41 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-08-23 19:15:13 +0200 |
commit | 75fb008711f0f80028230018ab37b988175211b4 (patch) | |
tree | b8b950cbed6152f4812f0943125ba6dd8647de93 /tool | |
parent | 4c6974c62591ef6698447712311edebca9546e5f (diff) |
openpgp: Rename SubkeyBinding to KeyBinding.
- Also rename the `subkey` method to `key`.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/decrypt.rs | 2 | ||||
-rw-r--r-- | tool/src/commands/inspect.rs | 4 |
2 files changed, 3 insertions, 3 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()); diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 3dbd27e0..5e3a259c 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -137,9 +137,9 @@ fn inspect_tpk(output: &mut io::Write, tpk: &openpgp::TPK, writeln!(output)?; for skb in tpk.subkeys() { - writeln!(output, " Subkey: {}", skb.subkey().fingerprint())?; + writeln!(output, " Subkey: {}", skb.key().fingerprint())?; inspect_revocation(output, "", skb.revoked(None))?; - inspect_key(output, "", skb.subkey(), skb.binding_signature(), + inspect_key(output, "", skb.key(), skb.binding_signature(), skb.certifications(), print_keygrips, print_certifications)?; writeln!(output)?; |