Add global flags disable-gpgconf, gpgconf-name, and gpg-name.
authorWerner Koch <wk@gnupg.org>
Mon, 6 Jan 2014 16:16:52 +0000 (17:16 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 6 Jan 2014 16:16:52 +0000 (17:16 +0100)
commit6564e5e78e8c6e5a120675a5699b5b75248cfbc7
treef60419297debdcd94c12f9c05dc7918b759c2200
parent02ba35c1b6a2cbb3361b2f2ad507c53564b2be0b
Add global flags disable-gpgconf, gpgconf-name, and gpg-name.

* src/gpgme.c (gpgme_set_global_flag): Add names "disable-gpgconf",
"gpgconf-name", and "gpg-name".
* src/dirinfo.c (_gpgme_dirinfo_disable_gpgconf): New.
(get_gpgconf_item): Minor debug info change.
* src/posix-util.c (default_gpg_name, default_gpgconf_name): Add vars.
(_gpgme_set_default_gpg_name): New.
(_gpgme_set_default_gpgconf_name): New.
(_gpgme_get_gpg_path, _gpgme_get_gpgconf_path): Use new vars.
(walk_path): Add debug output on failure.
* src/w32-util.c (default_gpg_name, default_gpgconf_name): Add vars.
(replace_slashes): New.
(get_basename): New.
(_gpgme_set_default_gpg_name): New.
(_gpgme_set_default_gpgconf_name): New.
(_gpgme_get_gpg_path, _gpgme_get_gpgconf_path): Use new vars.

* tests/t-engine-info.c (main): Add --verbose and --set-global-flag
options.
--

Note that the Windows part has not been tested.
doc/gpgme.texi
src/dirinfo.c
src/gpgme.c
src/posix-util.c
src/sys-util.h
src/util.h
src/w32-util.c
tests/t-engine-info.c