From 2c2516f03a28156d58b8da4c05f716095eab8957 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 5 Jul 2023 09:57:10 +0900 Subject: gpg: Use gnupg_fd_t for encrypt_crypt and gpg_verify. * common/iobuf.h (iobuf_fdopen_nc): Use gnupg_t. * common/iobuf.c (iobuf_fdopen_nc): Use gnupg_t. * g10/main.h (encrypt_crypt, gpg_verify): Use gnupg_fd_t. * g10/encrypt.c (encrypt_crypt): Use gnupg_fd_t. (encrypt_crypt_files): Follow the change. * g10/gpg.c (main): Follow the change. * g10/verify.c (gpg_verify): Use gnupg_fd_t. -- GnuPG-bug-id: 6580 Signed-off-by: NIIBE Yutaka --- common/iobuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/iobuf.h') diff --git a/common/iobuf.h b/common/iobuf.h index 04e6b4421..c523b8c96 100644 --- a/common/iobuf.h +++ b/common/iobuf.h @@ -337,7 +337,7 @@ iobuf_t iobuf_fdopen (int fd, const char *mode); /* Like iobuf_fdopen, but doesn't close the file descriptor when the filter is destroyed. */ -iobuf_t iobuf_fdopen_nc (int fd, const char *mode); +iobuf_t iobuf_fdopen_nc (gnupg_fd_t fd, const char *mode); /* Create a filter using an existing estream. If MODE contains the letter 'w', creates an output filter. Otherwise, creates an input -- cgit v1.2.3