mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Fix status check when using PC/SC.
* scd/apdu.c (struct reader_table_s): Add field of current_state. (new_reader_slot): Initialize current_state. (pcsc_get_status): Keep the status in READER_TABLE array. Return SW_HOST_NO_READER when PCSC_STATE_CHANGED. * scd/scdaemon.c (handle_connections): Silence a warning. -- To detect some change of card status, including suspend/resume possibly, SCardGetStatusChange should be used keeping the dwCurrentState field. This change could improve situation for suspend/resume with Yubikey on Windows. Even not, this is doing the Right Thing. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
334b948981
commit
f8b8b6aac2
2 changed files with 14 additions and 3 deletions
|
@ -1348,6 +1348,8 @@ handle_connections (int listen_fd)
|
|||
FD_SET (pipe_fd[0], &read_fdset);
|
||||
if (max_fd < pipe_fd[0])
|
||||
max_fd = pipe_fd[0];
|
||||
#else
|
||||
(void)max_fd;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_W32_SYSTEM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue