Home GnuPG
Diffusion GnuPG 239a4d53916b

common: Add a status callback to gnupg_exec_tool_stream.
239a4d53916bUnpublished

Unpublished Commit · Learn More

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

Description

common: Add a status callback to gnupg_exec_tool_stream.

* common/exectool.h (exec_tool_status_cb_t): New.
* common/exectool.c: Include missing exectool.h.
(read_and_log_buffer_t): Replace array by pointer.
(gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
Change all callers to pass NULL for them.  Malloc buffer for
FDERRSTATE.
(read_and_log_stderr): Implement status_fd feature.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 28 2016, 12:07 AM
Parents
rG44a32455c8e4: common: Allow a second input stream for gnupg_exec_tool_stream.
Branches
Unknown
Tags
Unknown

Event Timeline