mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* main.h, keylist.c (print_revokers): New. Print the "rvk" designated
revoker record. Moved from keyedit.c:show_key_with_all_names_colon. * keylist.c (list_keyblock_colon): Use it here ... * keyedit.c (show_key_with_all_names_colon): ... and here.
This commit is contained in:
parent
f7c138d9e7
commit
28c12508c5
4 changed files with 38 additions and 20 deletions
|
@ -2442,24 +2442,7 @@ show_key_with_all_names_colon (KBNODE keyblock)
|
|||
putchar('\n');
|
||||
|
||||
print_fingerprint (pk, NULL, 0);
|
||||
|
||||
/* print the revoker record */
|
||||
if( !pk->revkey && pk->numrevkeys )
|
||||
BUG();
|
||||
else
|
||||
{
|
||||
for (i=0; i < pk->numrevkeys; i++)
|
||||
{
|
||||
byte *p;
|
||||
|
||||
printf ("rvk:::%d::::::", pk->revkey[i].algid);
|
||||
p = pk->revkey[i].fpr;
|
||||
for (j=0; j < 20; j++, p++ )
|
||||
printf ("%02X", *p);
|
||||
printf (":%02x%s:\n", pk->revkey[i].class,
|
||||
(pk->revkey[i].class&0x40)?"s":"");
|
||||
}
|
||||
}
|
||||
print_revokers(pk);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue