diff options
author | NIIBE Yutaka <[email protected]> | 2023-07-18 05:05:13 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-07-18 05:05:13 +0000 |
commit | ae188a3357cf9c90967eabdd304782dea40cd1a1 (patch) | |
tree | 71137bb70778572fcff54e3585171bb83908ea8a /agent/command-ssh.c | |
parent | dirmngr,kbk,tools: Fix type casting. (diff) | |
download | gnupg-ae188a3357cf9c90967eabdd304782dea40cd1a1.tar.gz gnupg-ae188a3357cf9c90967eabdd304782dea40cd1a1.zip |
agent,build,w32: Fix use of SOCKET.
* configure.ac (HAVE_SOCKET): Detect SOCKET type.
* agent/command-ssh.c [HAVE_SOCKET] (start_command_handler_ssh): Use
SOCKET to cast.
--
GnuPG-bug-id: 6508
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r-- | agent/command-ssh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index ca3993321..0afa24111 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -3952,7 +3952,11 @@ start_command_handler_ssh (ctrl_t ctrl, gnupg_fd_t sock_client) es_syshd_t syshd; syshd.type = ES_SYSHD_SOCK; +#ifdef HAVE_SOCKET + syshd.u.sock = (SOCKET)sock_client; +#else syshd.u.sock = sock_client; +#endif get_client_info (sock_client, &peer_info); ctrl->client_pid = peer_info.pid; |