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:
parent
14400b2fb3
commit
c4ff9c5def
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user