Show
Ignore:
Timestamp:
04/20/08 09:59:23 (9 months ago)
Author:
alonbl
Message:

Initial Plug&Play support

Add detect_readers() to reader opts.
Add sc_ctx_detect_readers() that calls readers' detect_readers().
Allow context to be created without readers.
Call sc_ctx_detect_readers() from PKCS#11 C_GetSlotList with NULL_PTR.

Since I broke ABI, I updated the external module version requirement
to match OpenSC version. In the future a separate version should be
maintaind for each interface, this should be unrelated to the package
version.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/alonbl/pnp/src/pkcs11/pkcs11-global.c

    r3459 r3481  
    348348 
    349349        sc_debug(context, "Getting slot listing\n"); 
     350        if (pSlotList == NULL_PTR) { 
     351                sc_ctx_detect_readers(context); 
     352        } 
    350353        card_detect_all(); 
    351354