1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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.
This commit is contained in:
Werner Koch 2023-05-17 15:54:40 +02:00
parent c30d5829c9
commit 6944aefa3c
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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)