aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-03-31 12:03:13 +0000
committerNIIBE Yutaka <[email protected]>2022-03-31 12:03:13 +0000
commitf584ad95048279b244083fee330c5741be2b9da7 (patch)
tree5f690c323251541b47b23b3d9e5caf02a73c0531 /scd/scdaemon.h
parentdirmngr: Fix for SOCK. (diff)
downloadgnupg-f584ad95048279b244083fee330c5741be2b9da7.tar.gz
gnupg-f584ad95048279b244083fee330c5741be2b9da7.zip
scd,tpm2d: Fix for consistent use of socket FD.
* scd/command.c (scd_command_handler): Use gnupg_fd_t for the argument but no INT2FD to listen. Use GNUPG_INVALID_FD. * tpm2d/command.c (tpm2d_command_handler): Likewise. * scd/scdaemon.c (start_connection_thread): Follow the change. * tpm2d/tpm2daemon.c (start_connection_thread): Likewise. * scd/scdaemon.h (scd_command_handler): Use gnupg_fd_t. * tpm2d/tpm2daemon.h (tpm2d_command_handler): Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
-rw-r--r--scd/scdaemon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index 096a4b9e2..071960c6c 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -130,7 +130,7 @@ const char *scd_get_socket_name (void);
/*-- command.c --*/
gpg_error_t initialize_module_command (void);
-int scd_command_handler (ctrl_t, int);
+int scd_command_handler (ctrl_t, gnupg_fd_t);
void send_status_info (ctrl_t ctrl, const char *keyword, ...)
GPGRT_ATTR_SENTINEL(1);
gpg_error_t send_status_direct (ctrl_t ctrl,