summaryrefslogtreecommitdiffstats
path: root/g10/test-stubs.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-06-21 20:28:40 +0200
committerWerner Koch <wk@gnupg.org>2018-06-21 20:28:51 +0200
commit592deeddb9bf4ae9b3e236b439e2f39644eb6d46 (patch)
tree96916bef880c9859ab7bd3f5911fa3def0133b2b /g10/test-stubs.c
parentgpg: Print revocation reason for "rvs" records. (diff)
downloadgnupg2-592deeddb9bf4ae9b3e236b439e2f39644eb6d46.tar.xz
gnupg2-592deeddb9bf4ae9b3e236b439e2f39644eb6d46.zip
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 <wk@gnupg.org>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r--g10/test-stubs.c14
1 files changed, 14 insertions, 0 deletions
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;
+}