Home GnuPG

w32: Support sendfd/recvfd through pipe connection.

Description

w32: Support sendfd/recvfd through pipe connection.

* src/assuan-defs.h (w32_fdpass_send, w32_fdpass_recv): New.
* src/assuan-pipe-connect.c [HAVE_W32_SYSTEM] (pipe_connect): Set
w32_fdpass_send.
[!HAVE_W32_SYSTEM] (assuan_pipe_connect): Use socketpair_connect.
* src/assuan-pipe-server.c
[HAVE_W32_SYSTEM] (assuan_init_pipe_server): Set w32_fdpass_recv.
* src/system-w32.c (get_file_handle): New.
(w32_fdpass_send): New, using "SENDFD" internal command.
(w32_fdpass_recv): New, using the result of "SENDFD" internal command.
  • GnuPG-bug-id: T6236
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Nov 4 2022, 11:04 AM
Parents
rAce794a0a88a8: w32: Add SENDFD internal command.
Branches
Unknown
Tags
Unknown
Tasks
T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows