Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
authorWerner Koch <wk@gnupg.org>
Wed, 19 Nov 2014 09:31:34 +0000 (10:31 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 19 Nov 2014 09:47:56 +0000 (10:47 +0100)
commit0e7dd40342bd56810c27db1c38c1928f56f43bfd
tree633cf48590609754cd1858e0ed3b68339d102dfc
parent734afee733026228ba81ff66722bf484246cbe2b
Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.

* common/asshelp.c (start_new_gpg_agent): Add arg autostart.  Change
all callers to use 1 for it.
(start_new_dirmngr): Ditto.
* tools/gpg-connect-agent.c: Add option --no-autostart.
(main): Default autostart to 1.
(start_agent): Implement no-autostart.
* tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart.
(scdaemon_runtime_change): Ditto.
(dirmngr_runtime_change): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/asshelp.c
common/asshelp.h
common/get-passphrase.c
g10/call-agent.c
g10/call-dirmngr.c
sm/call-agent.c
sm/call-dirmngr.c
tools/gpg-connect-agent.c
tools/gpgconf-comp.c