aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/kbxserver.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-05-17 13:54:40 +0000
committerWerner Koch <[email protected]>2023-05-17 13:54:40 +0000
commit6944aefa3c2ef79cf3f14306ed384d22de36ba7f (patch)
treed4c8284cd16fc55da3fc5724e96f40ba22331fa7 /kbx/kbxserver.c
parentgpg: New option --debug-ignore-expiration to help with testing. (diff)
downloadgnupg-6944aefa3c2ef79cf3f14306ed384d22de36ba7f.tar.gz
gnupg-6944aefa3c2ef79cf3f14306ed384d22de36ba7f.zip
kbx,w32: Disable the fd-passing.
* kbx/kbxserver.c (kbxd_start_command_handler): No fd-passing udner Windows. -- file descriptor passing does not work reliable in libassuan for Windows and we actually don't need it here. It is not even used by gpg or gpgsm. As soon as we enable fd-passing in gpgme for Windows and see that it is robust enough we should back out this patch.
Diffstat (limited to 'kbx/kbxserver.c')
-rw-r--r--kbx/kbxserver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kbx/kbxserver.c b/kbx/kbxserver.c
index 990840980..ae9ae5c75 100644
--- a/kbx/kbxserver.c
+++ b/kbx/kbxserver.c
@@ -946,9 +946,15 @@ kbxd_start_command_handler (ctrl_t ctrl, gnupg_fd_t fd, unsigned int session_id)
}
else
{
+ /* The fd-passing does not work reliable on Windows, and even it
+ * it is not used by gpg and gpgsm the current libassuan slows
+ * down things if it is allowed for the server.*/
rc = assuan_init_socket_server (ctx, fd,
(ASSUAN_SOCKET_SERVER_ACCEPTED
- |ASSUAN_SOCKET_SERVER_FDPASSING));
+#ifndef HAVE_W32_SYSTEM
+ |ASSUAN_SOCKET_SERVER_FDPASSING
+#endif
+ ));
}
if (rc)