diff --git a/src/gpgme-json.c b/src/gpgme-json.c index d7e1cbc6..8d534c67 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 */