Home GnuPG
Diffusion GnuPG 22a7ef01aa2c

Replace use of opt.homedir by accessor functions.
22a7ef01aa2cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Jun 7 2016, 10:59 AM
Parents
rG650abbab7167: po: Update Japanese translation.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG22a7ef01aa2c: Replace use of opt.homedir by accessor functions. (authored by Werner Koch <wk@gnupg.org>).Jun 7 2016, 10:59 AM