From: Frank M. <no...@gi...> - 2020-06-09 10:07:37
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 8f6e5dc2b0e877460684993497bafdf404ea927c https://github.com/OpenSC/OpenSC/commit/8f6e5dc2b0e877460684993497bafdf404ea927c Author: Frank Morgner <fra...@gm...> Date: 2020-06-09 (Tue, 09 Jun 2020) Changed paths: M src/libopensc/reader-pcsc.c Log Message: ----------- Unbreak wait for events By Jabuk Jelen Fixes https://github.com/OpenSC/OpenSC/issues/2021 Commit: 1c7b311289d15716edc8b29de55799352b8e03b3 https://github.com/OpenSC/OpenSC/commit/1c7b311289d15716edc8b29de55799352b8e03b3 Author: Frank Morgner <fra...@gm...> Date: 2020-06-09 (Tue, 09 Jun 2020) Changed paths: M src/libopensc/reader-pcsc.c M src/ui/notify.c Log Message: ----------- pcsc: immediately exit on hotplug events fixes delayed notification for removed readers closes https://github.com/OpenSC/OpenSC/issues/2021 Commit: 36247d85b07e611139b6dee895485f6da1a36f18 https://github.com/OpenSC/OpenSC/commit/36247d85b07e611139b6dee895485f6da1a36f18 Author: Frank Morgner <fra...@gm...> Date: 2020-06-09 (Tue, 09 Jun 2020) Changed paths: M src/pkcs11/pkcs11-global.c Log Message: ----------- pkcs11: fixed notifying twice in case of an attached reader before 14e396273 sc_wait_for_event() only notified in case of a new reader, but didn't add it to the internal list of readers. That's why PKCS#11 needed to bail out early in this case (and the application had to call C_WaitForSlotEvent a second time to actually get the related slot). Since sc_wait_for_event() can now handle insertion correctly, we can now immediately check (and reset) the events on the slots. Compare: https://github.com/OpenSC/OpenSC/compare/1bb2547abca1...36247d85b07e |