aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-08-06 16:00:12 +0000
committerWerner Koch <[email protected]>2015-08-06 16:00:12 +0000
commitfbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9 (patch)
treecb9f74fa31f3d265d1d6318e098e4a4c43aa1bf4 /g10/keylist.c
parentgpg: Adjust UID line indentation for common key algos. (diff)
downloadgnupg-fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9.tar.gz
gnupg-fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9.zip
gpg: Add commands "fpr *" and "grip" to --edit-key.
* g10/keyedit.c (cmdGRIP): New. (cmds): Add command "grip". (keyedit_menu) <cmdFPR>: Print subkeys with argument "*". (keyedit_menu) <cmdGRIP>: Print keygrip. (show_key_and_fingerprint): Add arg "with_subkeys". (show_key_and_grip): New. * g10/keylist.c (print_fingerprint): Add mode 4. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 0f4c85ae0..4ea4bf5c5 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -1726,6 +1726,7 @@ print_icao_hexdigit (estream_t fp, int c)
* 1: print using log_info ()
* 2: direct use of tty
* 3: direct use of tty but only primary key.
+ * 4: direct use of tty but only subkey.
* 10: Same as 0 but with_colons etc is ignored.
*
* Modes 1 and 2 will try and print both subkey and primary key
@@ -1784,7 +1785,7 @@ print_fingerprint (estream_t override_fp, PKT_public_key *pk, int mode)
{
fp = override_fp; /* Use tty or given stream. */
if (primary)
- /* TRANSLATORS: this should fit into 24 bytes to that the
+ /* TRANSLATORS: this should fit into 24 bytes so that the
* fingerprint data is properly aligned with the user ID */
text = _(" Primary key fingerprint:");
else
@@ -1795,6 +1796,11 @@ print_fingerprint (estream_t override_fp, PKT_public_key *pk, int mode)
fp = override_fp; /* Use tty or given stream. */
text = _(" Key fingerprint =");
}
+ else if (mode == 4)
+ {
+ fp = override_fp; /* Use tty or given stream. */
+ text = _(" Subkey fingerprint:");
+ }
else
{
fp = override_fp? override_fp : es_stdout;