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>
Thu, 21 Jun 2018 18:03:44 +0000 (20:03 +0200)
commitb7cd2c2093ae1b47645be50fa1d431a028187cad
treeeee6550d2153482fc13f090f36c12b215d8e02dc
parent386b9c4f25b28fd769d7563f2d86ac3a19cc3011
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>
doc/DETAILS
g10/import.c
g10/pkclist.c