Home GnuPG
Diffusion GPGME 651d9e1c6bc1

Always pass correct name to argv[0]. Ignore GPG_AGENT_INFO for gpg2.
651d9e1c6bc1Unpublished

Unpublished Commit · Learn More

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

Description

Always pass correct name to argv[0]. Ignore GPG_AGENT_INFO for gpg2.

* src/dirinfo.c (WANT_GPG_ONE_MODE): New.
(struct dirinfo): Add field "gpg_one_mode".
(get_gpgconf_item): Set that field and return it if requested.
(_gpgme_in_gpg_one_mode): New.
* src/engine-gpg.c (build_argv): Check GPG_AGENT_INFO only in gpg-1
mode.
* src/dirinfo.c (_gpgme_get_basename): New.
* src/engine-g13.c (g13_new): Take argv[0] from the pgmname.
* src/engine-gpgsm.c (gpgsm_new): Ditto.
* src/engine-gpg.c (build_argv): Ditto. Add arg PGMNAME.
(start): Pass PGMNAME to buildargv.

Details

Provenance
wernerAuthored on Feb 21 2014, 11:22 AM
Parents
rMf916ab753b7d: Fix type inconsistency between gpgme.h and gpgme.c.
Branches
Unknown
Tags
Unknown

Event Timeline