mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.c
(revokestr_from_pk), keyedit.c (show_key_with_all_names): Show who revoked a key (either the same key or a designated revoker) and when.
This commit is contained in:
parent
f539f3d2b2
commit
b37facc593
5 changed files with 46 additions and 11 deletions
|
@ -2317,6 +2317,15 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
|||
primary=pk;
|
||||
}
|
||||
|
||||
if(pk->is_revoked)
|
||||
{
|
||||
char *user=get_user_id_string_native(pk->revoked.keyid);
|
||||
const char *algo=pubkey_algo_to_string(pk->revoked.algo);
|
||||
tty_printf(_("This key was revoked on %s by %s key %s\n"),
|
||||
revokestr_from_pk(pk),algo?algo:"?",user);
|
||||
m_free(user);
|
||||
}
|
||||
|
||||
if(with_revoker)
|
||||
{
|
||||
if( !pk->revkey && pk->numrevkeys )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue