common: New function gnupg_socketdir.
authorWerner Koch <wk@gnupg.org>
Tue, 7 Jun 2016 11:48:46 +0000 (13:48 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 7 Jun 2016 11:48:46 +0000 (13:48 +0200)
commit36550dde998fa1d497098050ca2d4e1a952ed6b6
tree852698c73f3d10736b2a7f291992fefbbed9ae32
parentfb88f37c40dc156fa0b5bfba4ac85f1e553fd7e9
common: New function gnupg_socketdir.

* common/homedir.c (gnupg_socketdir): New.
* agent/gpg-agent.c (create_socket_name): Use new function instead of
gnupg_homedir.
(check_own_socket): Ditto.
(check_for_running_agent): Ditto.
* agent/preset-passphrase.c (main): Ditto.
* common/asshelp.c (start_new_gpg_agent): Ditto.
* scd/scdaemon.c (create_socket_name): Ditto.
* tools/gpgconf.c (main): Ditto.
* tools/symcryptrun.c (main): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
agent/preset-passphrase.c
common/asshelp.c
common/homedir.c
common/util.h
scd/scdaemon.c
tools/gpgconf.c
tools/symcryptrun.c