core: Make use of --homedir in gpgconf.
authorWerner Koch <wk@gnupg.org>
Thu, 3 Nov 2016 08:31:30 +0000 (09:31 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 3 Nov 2016 08:31:30 +0000 (09:31 +0100)
commit0c2038c0043c1e79547b55e79c3d3e267dae801c
treeda9fbed73a4f85664c956d7b4bbd6ddce58b82b9
parentb4658f6a1110bb0b54bd5dfc9df8e8b390e38d61
core: Make use of --homedir in gpgconf.

* src/engine-gpgconf.c (struct engine_gpgconf): Add field 'version'.
(have_gpgconf_version): New.
(gpgconf_release): Free VERSION.
(gpgconf_new): Set VERSION.
(gpgconf_read, gpgconf_write): Use --homedir with recent gnupg.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpgconf.c