mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
969542c8c2
commit
fbb6c25ab5
2 changed files with 71 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue