Home GnuPG

experiment: Implement receving fd for Windows, part 4/N.

Description

experiment: Implement receving fd for Windows, part 4/N.

* src/assuan-defs.h (w32_fdpass_recv): New.
* src/assuan-socket-server.c (assuan_init_socket_server): Use it.
* src/system-w32.c (get_file_handle): New.
(w32_fdpass_send): Implement.
(process_fdpass_msg): Implement.
(w32_fdpass_recv): New.
(__assuan_read): De-multiplex the sendfd message and normal message.
  • GnuPG-bug-id: T6236
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 14 2022, 4:42 AM
Parents
rA0b9f0a7cdb81: Remove debug printf.
Branches
Unknown
Tags
Unknown
Tasks
T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows