Home GnuPG

Detect default homedir via gpgconf.
398fd028c762Unpublished

Unpublished Commit · Learn More

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

Description

Detect default homedir via gpgconf.

* src/server.c (decode_percent_string): Move to ..
* src/utils.c (decode_percent_string): here.
* src/gpgmetools.c (gpa_start_simple_gpg_command): Add arg use_stderr
and change all callers.
(gpg_simple_stdio_cb): Implement the !use_stderr case.
* src/get-path.c: Include string.h and gpa.h.
(struct homedir_from_gpgconf_s): New.
(homedir_from_gpgconf_parser): New.
(homedir_from_gpgconf): New.
(default_homedir): First try to detect via gpgconf.

It would be useful to equip GPGME with a function to parse the output
of "gpgconf --list-dir". Until then we need to go into some length to
read it.

Details

Provenance
wernerAuthored on Aug 12 2013, 6:44 PM
Parents
rGPA674252511027: Allow import and export of X.509 certificates.
Branches
Unknown
Tags
Unknown