Home GnuPG
Diffusion GPGME d56b3bc1cfa1

core: Defer adding --status-fd and --logger-fd to argument list

Description

core: Defer adding --status-fd and --logger-fd to argument list

* src/engine-gpg.c (_append_to_arglist, _prepend_to_arglist): New.
(_add_arg): Use _append_to_arglist and _prepend_to_arglist.
(add_data_ext): New. Extends add_data.
(add_data): Uses add_data_ext.
(gpg_new): Do not add --status-fd and --logger-fd to argument list.
(start): Prepend --logger-fd and --status-fd to the argument list.

This change makes it possible to handle those two arguments differently
if gpgtar is used instead of gpg.

Details

Provenance
ikloeckerAuthored on Jan 18 2023, 10:54 AM
Parents
rM7a68a1ca6452: doc: Document socketdir value of gpgme_get_dirinfo
Branches
Unknown
Tags
Unknown
Tasks
T6342: GPGME/Kleopatra: Extend gpgme to use gpgtar