aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-11-20 15:02:03 +0000
committerDavid Shaw <[email protected]>2005-11-20 15:02:03 +0000
commit28c12508c53cefdd86b7eafcb748a67aafd282d4 (patch)
tree0ab6fe5271e758dedd0e9abc181c43409318a05b /g10/keyedit.c
parent* free-packet.c (copy_secret_key): Copy secret key into secure memory (diff)
downloadgnupg-28c12508c53cefdd86b7eafcb748a67aafd282d4.tar.gz
gnupg-28c12508c53cefdd86b7eafcb748a67aafd282d4.zip
* 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.
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 174fef90c..52025ce27 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -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);
}
}