|
From: Frank M. <no...@gi...> - 2025-10-09 21:58:20
|
Branch: refs/heads/pkcs11_status Home: https://github.com/OpenSC/OpenSC Commit: 663344411b35766ead4c0dad0c4232c2d47f5fe7 https://github.com/OpenSC/OpenSC/commit/663344411b35766ead4c0dad0c4232c2d47f5fe7 Author: Frank Morgner <fra...@gm...> Date: 2025-10-09 (Thu, 09 Oct 2025) Changed paths: M src/pkcs11/pkcs11-global.c M src/pkcs11/sc-pkcs11.h M src/pkcs11/slot.c M src/tools/opensc-notify.c Log Message: ----------- pkcs11: leverage sc_wait_for_event to avoid unneccesary queries to card card_detect_all() is now used as global entry point even to reader specific card detection (card_detect() is removed). This enforces a constant update of reader_states so that no events are silently dropped. This removes the need for having a timer in C_GetSlotInfo() for avoiding too many queries. If the reader implementation (i.e. reader-*.c) does not implement wait_for_event, then all slots will be queried on request just like it used to be. fixes https://github.com/OpenSC/OpenSC/issues/3107 Commit: 7725cfb0af3852235682577051759f7d1de798c6 https://github.com/OpenSC/OpenSC/commit/7725cfb0af3852235682577051759f7d1de798c6 Author: Frank Morgner <fra...@gm...> Date: 2025-10-09 (Thu, 09 Oct 2025) Changed paths: M src/libopensc/reader-pcsc.c Log Message: ----------- PC/SC: fixed missing events of sc_wait_for_event() pcsc_wait_for_event now exports an opaque structure which not only holds the reader states but also indicates the SCARDCONTEXT, which is used to query for events. This context is exclusively for these event requests, which fixes the problem of events being swallowed by the primary SCARDCONTEXT that is used for standard card/reader interaction. It seems to be consistent across macOS, Windows and Linux that SCardGetStatusChange returns new events based on those that have been detected with the same context rather than those events that are based on the input of LPSCARD_READERSTATE. Commit: a44d90a3df5c988017dec6e03b733d4879673cc9 https://github.com/OpenSC/OpenSC/commit/a44d90a3df5c988017dec6e03b733d4879673cc9 Author: Frank Morgner <fra...@gm...> Date: 2025-10-09 (Thu, 09 Oct 2025) Changed paths: M configure.ac M src/pkcs11/pkcs11-global.c Log Message: ----------- PKCS#11: support C_WaitForSlotEvent for macOS and Windows All platforms are supporting good enough `SCardGetStatusChange()` so that `C_WaitForSlotEvent()` can be done on all platforms. On Linux, this raises the minimum requirement for PCSC lite to 1.8.22 (17 June 2017) Commit: 6779cd554279b56752441e7ff8640c19b4aa9706 https://github.com/OpenSC/OpenSC/commit/6779cd554279b56752441e7ff8640c19b4aa9706 Author: Frank Morgner <fra...@gm...> Date: 2025-10-09 (Thu, 09 Oct 2025) Changed paths: M src/pkcs11/slot.c Log Message: ----------- pkcs11 fixed warnings Compare: https://github.com/OpenSC/OpenSC/compare/663344411b35%5E...6779cd554279 To unsubscribe from these emails, change your notification settings at https://github.com/OpenSC/OpenSC/settings/notifications |