aboutsummaryrefslogtreecommitdiffstats
path: root/agent/cache.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-03-08 07:51:51 +0000
committerNIIBE Yutaka <[email protected]>2018-03-08 07:51:51 +0000
commitf8b8b6aac2ca1cb34d7a346aee1d874e7650557b (patch)
tree6778d134663de5d7313cb8c6f0e43a7c1004531b /agent/cache.c
parentgpg: Fix build on Windows. (diff)
downloadgnupg-f8b8b6aac2ca1cb34d7a346aee1d874e7650557b.tar.gz
gnupg-f8b8b6aac2ca1cb34d7a346aee1d874e7650557b.zip
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 <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions