From 0821e2b1495e8944a5a1b5ba20ad5f403dde0dd0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 11 Mar 2021 11:49:07 +0100 Subject: core: New flag GPGME_KEYSIGN_FORCE. * src/gpgme.h.in (GPGME_KEYSIGN_FORCE): New. * src/engine-gpg.c (gpg_keysign): Implement. * tests/run-keysign.c (show_usage): Add option --force -- GnuPG-bug-id: 4584 --- doc/gpgme.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 99a228b3..11147862 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -4699,6 +4699,11 @@ separated user IDs. Force the creation of a key signature without an expiration date. This overrides @var{expire} and any local configuration of the engine. +@item GPGME_KEYSIGN_FORCE +Force the creation of a new signature even if one already exists. +This flag has an effect only if the gpg version is at least 2.2.28 but +won't return an error with older versions. + @end table The function returns zero on success, @code{GPG_ERR_NOT_SUPPORTED} if -- cgit v1.2.3