Home GnuPG
Diffusion GnuPG 0611f548bcd3

tools: New option --keyboxd for gpg-connect-agent.

Description

tools: New option --keyboxd for gpg-connect-agent.

* configure.ac: New option --keyboxd-pgm.
(KEYBOXD_NAME, KEYBOXD_DISP_NAME): New ac_defines.
* common/util.h: Add substitutes for new error codes.
(GNUPG_MODULE_NAME_KEYBOXD): New.
* common/homedir.c (gnupg_module_name): Support
GNUPG_MODULE_NAME_KEYBOXD.
* common/asshelp.c (SECS_TO_WAIT_FOR_KEYBOXD): New.
(wait_for_sock): Support keyboxd.
(start_new_service): Ditto.
(start_new_keyboxd): New.
* tools/gpg-connect-agent.c: New options --keyboxd and
--keyboxd-program.
(start_agent): Implement new option.

This change allows us to test the new keyboxd using our standard
helper. It also provides the necessary code to start keyboxd on the
fly.

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

Details

Provenance
wernerAuthored on Aug 6 2019, 2:28 PM
Parents
rGe22ebf357050: common: Remove code duplication for service starting.
Branches
Unknown
Tags
Unknown