Home GnuPG
Diffusion GnuPG 7732b3328867

gpgconf: Enhance --list-dirs.
7732b3328867Unpublished

Unpublished Commit · Learn More

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

Description

gpgconf: Enhance --list-dirs.

* tools/gpgconf.c (main) <aListDir>: Factor code out to ...
(list_dirs): new.  Rewrite to use a table.  Allow selection of a
items.  Add "agent-ssh-socket".

This change makes the use of gpgconf in scripts easier. For example,
to set the envvar with the name of the socket used by ssh, it is now
possible to do this:

SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"

which guarantees that the right name is used.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 11 2016, 1:05 PM
Parents
rGe32c575e0f37: gpgv: Tweak default options for extra security.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG7732b3328867: gpgconf: Enhance --list-dirs. (authored by Werner Koch <wk@gnupg.org>).Jul 11 2016, 1:06 PM