File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -243,15 +243,12 @@ CK_RV C_Initialize(CK_VOID_PTR pInitArgs)
243243 if (sc_pkcs11_conf .plug_and_play ) {
244244 create_slot (NULL );
245245 }
246- /* Create slots for readers found on initialization */
247- for (i = 0 ; i < sc_ctx_get_reader_count (context ); i ++ ) {
248- initialize_reader (sc_ctx_get_reader (context , i ));
249- }
250246
251- /* Set initial event state on slots */
252- for (i = 0 ; i < list_size (& virtual_slots ); i ++ ) {
253- sc_pkcs11_slot_t * slot = (sc_pkcs11_slot_t * ) list_get_at (& virtual_slots , i );
254- slot -> events = 0 ; /* Initially there are no events */
247+ /* Create slots for readers found on initialization, only if in 2.11 mode */
248+ if (!sc_pkcs11_conf .plug_and_play ) {
249+ for (i = 0 ; i < sc_ctx_get_reader_count (context ); i ++ ) {
250+ initialize_reader (sc_ctx_get_reader (context , i ));
251+ }
255252 }
256253
257254out :
You can’t perform that action at this time.
0 commit comments