Home GnuPG

w32: Store a flag if it's socket or not in Assuan CTX.

Description

w32: Store a flag if it's socket or not in Assuan CTX.

* src/assuan-defs.h (struct assuan_context_s): Add is_socket flag.
* src/assuan-socket.c (assuan_sock_init): Set the flag.
* src/assuan-socket-connect.c (_assuan_connect_finalize): Likewise.
* src/assuan-socket-server.c (assuan_init_socket_server): Likewise.
* src/system-w32.c (__assuan_close): Use the flag.
(is_socket): Remove.
(__assuan_read, __assuan_write): Use the flag.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 6 2022, 7:00 AM
Parents
rA5b77d39672ac: Fix API break.
Branches
Unknown
Tags
Unknown