mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Extend gnupg_create_inbound_pipe et al.
* common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp' and 'nonblock'. (gnupg_create_outbound_pipe): Ditto. * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet functional args 'r_fp' and 'nonblock'. (gnupg_create_outbound_pipe): Ditto. * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto. (gnupg_create_outbound_pipe): Ditto. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
96c7901ec1
commit
5d991e333a
7 changed files with 54 additions and 28 deletions
|
@ -430,9 +430,9 @@ _gpg_encrypt (ctrl_t ctrl,
|
|||
assert ((reader_mb == NULL) != (cipher_stream == NULL));
|
||||
|
||||
/* Create two pipes. */
|
||||
err = gnupg_create_outbound_pipe (outbound_fds);
|
||||
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
|
||||
if (!err)
|
||||
err = gnupg_create_inbound_pipe (inbound_fds);
|
||||
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
|
||||
if (err)
|
||||
{
|
||||
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));
|
||||
|
@ -614,9 +614,9 @@ _gpg_decrypt (ctrl_t ctrl,
|
|||
assert ((reader_mb == NULL) != (plain_stream == NULL));
|
||||
|
||||
/* Create two pipes. */
|
||||
err = gnupg_create_outbound_pipe (outbound_fds);
|
||||
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
|
||||
if (!err)
|
||||
err = gnupg_create_inbound_pipe (inbound_fds);
|
||||
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
|
||||
if (err)
|
||||
{
|
||||
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue