dirmngr: Remove all system daemon features.
authorWerner Koch <wk@gnupg.org>
Thu, 18 Aug 2016 09:23:40 +0000 (11:23 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 18 Aug 2016 09:23:40 +0000 (11:23 +0200)
commitd83ba4897bf217d1045c58d1b99e52bd31c58812
tree1eaf4c2976175b8dcedd5d3c3a721c3015fbf68a
parentde6e3217cde81df370926571e0fd65e468619803
dirmngr: Remove all system daemon features.

* dirmngr/dirmngr.h (opts): Remove fields 'system_service' and
'system_daemon'.
* common/homedir.c (dirmngr_sys_socket_name): Remove.
(dirmngr_user_socket_name): Rename to ...
(dirmngr_socket_name): this.  Change call callers.
* common/asshelp.c (start_new_dirmngr): Remove the system socket
feature.
* tools/gpgconf.c (list_dirs): Do not print "dirmngr-sys-socket".
* sm/server.c (gpgsm_server): Adjust for removed system socket feature.
* dirmngr/server.c (cmd_getinfo): Ditto.
(cmd_killdirmngr): Remove check for system daemon.
(cmd_reloaddirmngr): Ditto.
* dirmngr/dirmngr.c (USE_W32_SERVICE): Remove macro.
(aService): Remove.
(opts): Remove --service.
(w32_service_control): Remove.
(real_main, call_real_main) [W32]: Remove wrapper.
(main): Remove Windows system service feature.  Remove system dameon
feature.  Use only the "~/.gnupg/dirmngr_ldapservers.conf" file.
* dirmngr/certcache.c (load_certs_from_dir): Remove warning in the
system dameon case.
* dirmngr/crlcache.c (DBDIR_D): Always use "~/.gnupg/crls.d".
* dirmngr/ocsp.c (validate_responder_cert): Do not call
validate_cert_chain which was used only in system daemon mode.
* dirmngr/validate.c (validate_cert_chain): Always use the code.
--

We are now starting dirmngr as needed as a user daemon.  The
deprecated system daemon mode does not anymore make sense.  In case a
system wide daemon is required, it is better to setup a dedicated
account to run dirmngr and tweak socket permissions accordingly.

Signed-off-by: Werner Koch <wk@gnupg.org>
13 files changed:
common/asshelp.c
common/homedir.c
common/util.h
dirmngr/certcache.c
dirmngr/crlcache.c
dirmngr/dirmngr.c
dirmngr/dirmngr.h
dirmngr/ocsp.c
dirmngr/server.c
dirmngr/validate.c
doc/dirmngr.texi
sm/server.c
tools/gpgconf.c