diff options
author | David Shaw <[email protected]> | 2005-11-20 15:02:03 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-11-20 15:02:03 +0000 |
commit | 28c12508c53cefdd86b7eafcb748a67aafd282d4 (patch) | |
tree | 0ab6fe5271e758dedd0e9abc181c43409318a05b /g10/keyedit.c | |
parent | * free-packet.c (copy_secret_key): Copy secret key into secure memory (diff) | |
download | gnupg-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.c | 19 |
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); } } |