mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Allow a second input stream for gnupg_exec_tool_stream.
* common/exechelp-posix.c (do_exec): Add arg 'except' and pass to close_all_fds. (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL for it. * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'. * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto. * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK. (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass NULL for it. Allow NULL for OUTPUT. -- This hack is a first step to allow calling gpg for verification of signatures. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e6d9a2d07e
commit
44a32455c8
10 changed files with 124 additions and 36 deletions
|
@ -515,7 +515,7 @@ create_process (const char *pgmname, const char *cmdline,
|
|||
/* Fork and exec the PGMNAME, see exechelp.h for details. */
|
||||
gpg_error_t
|
||||
gnupg_spawn_process (const char *pgmname, const char *argv[],
|
||||
void (*preexec)(void), unsigned int flags,
|
||||
int *except, void (*preexec)(void), unsigned int flags,
|
||||
estream_t *r_infp,
|
||||
estream_t *r_outfp,
|
||||
estream_t *r_errfp,
|
||||
|
@ -541,6 +541,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
|
|||
estream_t errfp = NULL;
|
||||
gpg_err_source_t errsource = default_errsource;
|
||||
|
||||
(void)except; /* Not yet used. */
|
||||
(void)preexec;
|
||||
(void)flags;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue