Home GnuPG
Diffusion GnuPG 37343db08f4a

common,gpg,kbx: Factor out open_stream_nc.

Description

common,gpg,kbx: Factor out open_stream_nc.

* common/sysutils.h (open_stream_nc): New.
* common/sysutils.c (open_stream_nc): New.
* g10/decrypt.c (decrypt_message_fd): Use open_stream_nc.
* g10/server.c (cmd_verify): Likewise.
* kbx/kbxserver.c (prepare_outstream): Likewise.
  • GnuPG-bug-id: T6580
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 7 2023, 8:07 AM
Parents
rG5bc949d23040: common:w32: Fix gnupg_w32_set_errno.
Branches
Unknown
Tags
Unknown
Tasks
T6580: Use gnupg_fd_t if it's relevant