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:
parent
81fc7b291e
commit
5746c944cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user