From: Marco T. <no...@gi...> - 2021-03-22 14:36:25
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 845eac425093079af050b1c8f1ed885876488a3d https://github.com/OpenSC/OpenSC/commit/845eac425093079af050b1c8f1ed885876488a3d Author: Marco Trevisan (Treviño) <ma...@3v...> Date: 2021-03-22 (Mon, 22 Mar 2021) Changed paths: M src/pkcs11/pkcs11-global.c Log Message: ----------- pkcs11-global: Obey to the tokenPresent parameter on C_GetSlotList Since commit dba0f56 the tokenPresent parameter is ignored in case the slot has been already seen. This breaks the API expectations as we may return a slot that has no token inserted. So, only consider the SC_PKCS11_SLOT_FLAG_SEEN if tokenPresent is false |