From 04fb76684d8b2c9cda2e5c35bad6edec521cffa5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 21 Jun 2018 20:28:40 +0200 Subject: gpg: Print revocation reason for "rev" records. * g10/main.h: Add prototype. * g10/keylist.c (list_keyblock_print): Print revocation info. (list_keyblock_colon): Ditto. * g10/test-stubs.c (get_revocation_reason): New stub. * g10/gpgv.c (get_revocation_reason): New stub. -- GnuPG-bug-id: 1173 Signed-off-by: Werner Koch (cherry picked from commit 592deeddb9bf4ae9b3e236b439e2f39644eb6d46) --- g10/main.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'g10/main.h') diff --git a/g10/main.h b/g10/main.h index af25d559c..389a557fc 100644 --- a/g10/main.h +++ b/g10/main.h @@ -378,6 +378,9 @@ gpg_error_t transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, int collapse_uids( KBNODE *keyblock ); +int get_revocation_reason (PKT_signature *sig, char **r_reason, + char **r_comment, size_t *r_commentlen); + /*-- export.c --*/ struct export_stats_s; -- cgit v1.2.3