Replace use of opt.homedir by accessor functions.
authorWerner Koch <wk@gnupg.org>
Tue, 7 Jun 2016 08:59:46 +0000 (10:59 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 7 Jun 2016 08:59:46 +0000 (10:59 +0200)
commit22a7ef01aa2c0eb77bcc40174d09104acc35cab1
tree3782b20549fcc48d2598128676227d9a16f785b6
parent650abbab716750d6087a457a25fa2efaaa3567cd
Replace use of opt.homedir by accessor functions.

* common/homedir.c (the_gnupg_homedir): New var.
(gnupg_set_homedir): New.
(gnupg_homedir): New.
* g10/options.h (struct opt): Remove 'homedir' and replace all users
by the new accessor functions.
* g13/g13-common.h (struct opt): Ditto.
* scd/scdaemon.h (struct opt): Ditto.
* sm/gpgsm.h (struct opt): Ditto.
* dirmngr/dirmngr.h (struct opt): Ditto.
* agent/preset-passphrase.c (opt_homedir): Ditto.
* agent/protect-tool.c (opt_homedir): Ditto.
--

This will make detection of a non-default homedir easier.

Signed-off-by: Werner Koch <wk@gnupg.org>
44 files changed:
agent/agent.h
agent/command-ssh.c
agent/command.c
agent/findkey.c
agent/gpg-agent.c
agent/preset-passphrase.c
agent/protect-tool.c
agent/trustlist.c
common/homedir.c
common/util.h
dirmngr/dirmngr.c
dirmngr/dirmngr.h
dirmngr/server.c
g10/call-agent.c
g10/call-dirmngr.c
g10/gpg.c
g10/gpgcompose.c
g10/gpgv.c
g10/keydb.c
g10/keyedit.c
g10/keygen.c
g10/migrate.c
g10/options.h
g10/revoke.c
g10/server.c
g10/tdbio.c
g10/tofu.c
g13/g13-common.h
g13/g13-syshelp.c
g13/g13.c
g13/server.c
kbx/keybox-defs.h
scd/command.c
scd/scdaemon.c
scd/scdaemon.h
sm/call-agent.c
sm/call-dirmngr.c
sm/gpgsm.c
sm/gpgsm.h
sm/keydb.c
sm/server.c
tools/gpg-check-pattern.c
tools/gpg-connect-agent.c
tools/symcryptrun.c