[git] GPGME - branch, master, updated. gpgme-1.11.1-77-g76b8470

by Andre Heinecke cvs at cvs.gnupg.org
Wed Jul 4 11:17:00 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  76b847091593669c8a7e38918267d6be97dbd4d0 (commit)
      from  5bca49975063f788b2499342d5a565faf54511db (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 76b847091593669c8a7e38918267d6be97dbd4d0
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Jul 4 11:13:26 2018 +0200

    json: Add keylist mode locate
    
    * src/gpgme-json.c (op_keylist, hlp_keylist): Add locate.
    
    --
    The same rationale for the KEYLIST_MODE_LOCATE in GPGME
    also applies here. It makes the API a little less magic.

diff --git a/src/gpgme-json.c b/src/gpgme-json.c
index d7e1cbc..8d534c6 100644
--- a/src/gpgme-json.c
+++ b/src/gpgme-json.c
@@ -2125,6 +2125,7 @@ static const char hlp_keylist[] =
   "tofu:          Add KEYLIST_MODE_WITH_TOFU.\n"
   "ephemeral:     Add KEYLIST_MODE_EPHEMERAL.\n"
   "validate:      Add KEYLIST_MODE_VALIDATE.\n"
+  "locate:        Add KEYLIST_MODE_LOCATE.\n"
   "\n"
   "Response on success:\n"
   "keys:   Array of keys.\n"
@@ -2290,6 +2291,11 @@ op_keylist (cjson_t request, cjson_t result)
   if (abool)
     mode |= GPGME_KEYLIST_MODE_VALIDATE;
 
+  if ((err = get_boolean_flag (request, "locate", 0, &abool)))
+    goto leave;
+  if (abool)
+    mode |= GPGME_KEYLIST_MODE_LOCATE;
+
   if (!mode)
     {
       /* default to local */

-----------------------------------------------------------------------

Summary of changes:
 src/gpgme-json.c | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list