gpg: Print revocation certificate details when showing with-colons.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 12 Jun 2018 06:41:30 +0000 (02:41 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 30 Sep 2018 16:40:42 +0000 (17:40 +0100)
commit96b4c0cd9640af56f9b643d8d148d5953dfbfeb9
tree4bbac71f2011f0f318674e6fc74e5e19e8b54aef
parent60046410bc41b8a082052da2c9c61dec22855ca7
gpg: Print revocation certificate details when showing with-colons.

* g10/import.c (import_revoke_cert): add options argument, and print
colon-delimited output for revocation certificate as requested.
--

I looked into trying to make this work with one of the functions in
g10/keylist.c, but i saw nothing that will accept a revocation
certificate on its own, so i'm replicating the functionality directly
in g10/import.c.  This is a bit unfortunate because the code for
describing a revocation cert now exists in two separate places, but
refactoring both list_keyblock_print() and list_keyblock_colon() in
g10/keylist.c seems like a much heavier lift.

GnuPG-Bug-id: 4018
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Gbp-Pq: Topic show-revocation-cert
Gbp-Pq: Name gpg-Print-revocation-certificate-details-when-showing-wit.patch
g10/import.c