diff options
author | Werner Koch <wk@gnupg.org> | 2018-06-21 20:28:40 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-06-21 20:28:51 +0200 |
commit | 592deeddb9bf4ae9b3e236b439e2f39644eb6d46 (patch) | |
tree | 96916bef880c9859ab7bd3f5911fa3def0133b2b /g10/test-stubs.c | |
parent | gpg: Print revocation reason for "rvs" records. (diff) | |
download | gnupg2-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.c | 14 |
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; +} |