summaryrefslogtreecommitdiffstats
path: root/g10/revoke.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-10-28 17:06:27 +0100
committerWerner Koch <wk@gnupg.org>2020-10-28 17:06:27 +0100
commit243f9176e799b2328f2e5bed93099bfc474fdc5a (patch)
tree3e2d0ca22cba6bd17e0e15d12f041ff17450ea3a /g10/revoke.c
parentgpg: Sort the signatures in standard key listings. (diff)
downloadgnupg2-243f9176e799b2328f2e5bed93099bfc474fdc5a.tar.xz
gnupg2-243f9176e799b2328f2e5bed93099bfc474fdc5a.zip
gpg: New command --quick-revoke-sig
* g10/gpg.c (enum cmd_and_opt_values): Add aQuickRevSig. (opts): Add --quick-revoke-sig. (main): Implement. * g10/keyedit.c (quick_find_keyblock): Add arg 'want_secret' and adjust all callers. (keyedit_quick_revsig): new. * g10/revoke.c (get_default_sig_revocation_reason): New. * g10/keylist.c (cmp_signodes): Make global. -- GnuPG-bug-id: 5093
Diffstat (limited to 'g10/revoke.c')
-rw-r--r--g10/revoke.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/g10/revoke.c b/g10/revoke.c
index 5262c17bf..c0a003b6f 100644
--- a/g10/revoke.c
+++ b/g10/revoke.c
@@ -889,6 +889,16 @@ get_default_uid_revocation_reason(void)
return reason;
}
+struct revocation_reason_info *
+get_default_sig_revocation_reason(void)
+{
+ struct revocation_reason_info *reason;
+ reason = xmalloc( sizeof *reason );
+ reason->code = 0; /* No specific reason given. */
+ reason->desc = strdup(""); /* no text */
+ return reason;
+}
+
void
release_revocation_reason_info( struct revocation_reason_info *reason )
{