diff options
author | Werner Koch <[email protected]> | 2024-10-01 16:07:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-10-01 16:07:32 +0000 |
commit | 4275d5fa7a51731544d243ba16628a9958ffe3ce (patch) | |
tree | c99245e7662ab567b38620e273241c8c1450174b /agent/agent.h | |
parent | gpgsm: Possible improvement for some rare P12 files. (diff) | |
download | gnupg-4275d5fa7a51731544d243ba16628a9958ffe3ce.tar.gz gnupg-4275d5fa7a51731544d243ba16628a9958ffe3ce.zip |
agent: Add option --status to the LISTRUSTED command.
* agent/trustlist.c (istrusted_internal): Add arg listmode and print
new status line in this mode. Adjust callers.
(agent_listtrusted): Add new args ctrl and status_mode. Get all
trusted keys and then call is_trusted_internal for all of them.
* agent/command.c (cmd_listtrusted): Add new option --status.
--
This allows in a non-restricted connection to list all trusted keys in
one go.
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index ae2ae5004..42b167726 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -637,7 +637,8 @@ gpg_error_t agent_write_shadow_key (ctrl_t ctrl, const unsigned char *grip, /*-- trustlist.c --*/ void initialize_module_trustlist (void); gpg_error_t agent_istrusted (ctrl_t ctrl, const char *fpr, int *r_disabled); -gpg_error_t agent_listtrusted (void *assuan_context); +gpg_error_t agent_listtrusted (ctrl_t ctrl, void *assuan_context, + int status_mode); gpg_error_t agent_marktrusted (ctrl_t ctrl, const char *name, const char *fpr, int flag); void agent_reload_trustlist (void); |