|
From: Douglas E E. <dee...@gm...> - 2015-11-28 21:46:57
|
In response to https://github.com/OpenSC/OpenSC/issues/596 Please have a look at https://github.com/OpenSC/OpenSC/pull/624 This tries to have C_GetSessionInfo do what it should do,that is determine the state of the card right now by querying PCSC and doing a operations to the card to check it state. Have tested with FireFox with card_disconnect = reset; and card_disconnect = leave; I have not tried adding sc_pkcs15_pincache_revalidate to sc_pkcs15_check_state yet. In reader-pcsc.c: pcsc_lock if SCARD_W_RESET was returned, a sleep(1) was added. -- Douglas E. Engert <DEE...@gm...> |