Home GnuPG
Diffusion GnuPG 250fff0f6eaf

common:iobuf: Avoid losing bits of HANDLE on Windows 64-bit.

Description

common:iobuf: Avoid losing bits of HANDLE on Windows 64-bit.

* common/iobuf.c (translate_file_handle): Change the return type to
gnupg_fd_t, not to lose the bits for HANDLE silently.
(do_iobuf_fdopen): Use the type gnupg_fd_t for the first argument.
(do_open): Use do_iobuf_fdopen instead of iobuf_fdopen.
(iobuf_fdopen, iobuf_fdopen_nc): Follow the change of API.
  • GnuPG-bug-id: T6508
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 30 2023, 8:56 AM
Parents
rG6049d61991a1: common: Fix the cast for 64-bit Windows.
Branches
Unknown
Tags
Unknown
Tasks
T6508: Port GnuPG to 64-bit Windows