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

agent: Require use of "SCD DEVINFO --watch" command with socket.

* agent/call-scd.c (agent_card_devinfo): Check if client connects
by a socket.

--

GnuPG-bug-id: 7151
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-06-28 13:51:22 +09:00
parent 14400b2fb3
commit c4ff9c5def
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -1189,6 +1189,9 @@ agent_card_devinfo (ctrl_t ctrl, void *assuan_context)
int rc;
gnupg_fd_t client_fds[2];
if (ctrl->thread_startup.fd == GNUPG_INVALID_FD)
return GPG_ERR_INV_HANDLE;
rc = daemon_start (DAEMON_SCD, ctrl, 1);
if (rc)
return rc;