mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +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 c4ff9c5def1aaf76f7cec82d9aa7e5cb1b77f044)
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…
x
Reference in New Issue
Block a user