Diffusion GnuPG 8a915cd9faf0

agent: New commands PUT_SECRET and GET_SECRET.

Authored by werner on Jul 2 2018, 9:24 PM.

Description

agent: New commands PUT_SECRET and GET_SECRET.

* agent/agent.h (CACHE_MODE_DATA): New const.
* agent/cache.c (DEF_CACHE_TTL_DATA): new.
(housekeeping): Tweak for CACHE_MODE_DATA.
(cache_mode_equal): Ditto.
(agent_get_cache): Ditto.
(agent_put_cache): Implement CACHE_MODE_DATA.
* agent/command.c (MAXLEN_PUT_SECRET): New.
(parse_ttl): New.
(cmd_get_secret): New.
(cmd_put_secret): New.
(register_commands): Register new commands.

These commands allow to store secrets in memory for the lifetime of
the gpg-agent process.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerJul 2 2018, 9:36 PM
Parents
rG58baf40af641: common: New function percent_data_escape.
Branches
Unknown
Tags
Unknown