mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Simply use gnupg_create_pipe for normal pipe creation.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
19df973df0
commit
72a1c1b872
2 changed files with 6 additions and 6 deletions
|
@ -428,9 +428,9 @@ _gpg_encrypt (ctrl_t ctrl,
|
|||
assert ((reader_mb == NULL) != (cipher_stream == NULL));
|
||||
|
||||
/* Create two pipes. */
|
||||
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
|
||||
err = gnupg_create_pipe (outbound_fds);
|
||||
if (!err)
|
||||
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
|
||||
err = gnupg_create_pipe (inbound_fds);
|
||||
if (err)
|
||||
{
|
||||
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));
|
||||
|
@ -612,9 +612,9 @@ _gpg_decrypt (ctrl_t ctrl,
|
|||
assert ((reader_mb == NULL) != (plain_stream == NULL));
|
||||
|
||||
/* Create two pipes. */
|
||||
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
|
||||
err = gnupg_create_pipe (outbound_fds);
|
||||
if (!err)
|
||||
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
|
||||
err = gnupg_create_pipe (inbound_fds);
|
||||
if (err)
|
||||
{
|
||||
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue