gpg: Print revocation reason for "rvs" records.
authorWerner Koch <wk@gnupg.org>
Thu, 21 Jun 2018 16:32:13 +0000 (18:32 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 3 Jul 2018 09:56:04 +0000 (11:56 +0200)
commita8e24addcc4e0fdff7d07acdd7e13bf6febf97d2
treecf7df3797329367cf25dc8c7cee75f9b6a7f05a9
parent5c67ee160d4969b1ef94642ac602e1aed4d9a6d7
gpg: Print revocation reason for "rvs" records.

* g10/import.c (get_revocation_reason): New.
(list_standalone_revocation): Extend function.
--

Note that this function extends the "rvs" field signature-class (field
11) with the revocation reason.  GPGME does not yet parse this but it
can be expected that the comma delimiter does not break other parsers.

A new field is added to the "rvs" (and in future also the "rev")
record to carry a record specific comment.  Hopefully all parsers
meanwhile learned the lesson from other new fields and don't bail out
on more fields than they know about.

This is partial solution to
GnuPG-bug-id: 1173

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit b7cd2c2093ae1b47645be50fa1d431a028187cad)
doc/DETAILS
g10/import.c
g10/pkclist.c