From 592deeddb9bf4ae9b3e236b439e2f39644eb6d46 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 --- g10/test-stubs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'g10/test-stubs.c') diff --git a/g10/test-stubs.c b/g10/test-stubs.c index e5fd3ae9a..1e1363266 100644 --- a/g10/test-stubs.c +++ b/g10/test-stubs.c @@ -535,3 +535,17 @@ tofu_notice_key_changed (ctrl_t ctrl, kbnode_t kb) return 0; } + +int +get_revocation_reason (PKT_signature *sig, char **r_reason, + char **r_comment, size_t *r_commentlen) +{ + (void)sig; + (void)r_commentlen; + + if (r_reason) + *r_reason = NULL; + if (r_comment) + *r_comment = NULL; + return 0; +} -- cgit v1.2.3