From 243f9176e799b2328f2e5bed93099bfc474fdc5a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 28 Oct 2020 17:06:27 +0100 Subject: 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 --- g10/revoke.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'g10/revoke.c') 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 ) { -- cgit v1.2.3