1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +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>
(cherry picked from commit c4ff9c5def)
This commit is contained in:
NIIBE Yutaka 2024-06-28 13:51:22 +09:00 committed by Werner Koch
parent 81fc7b291e
commit 5746c944cd
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1185,6 +1185,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;