Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use static slot id bound to reader name #8

Closed
CardContact opened this issue Aug 27, 2015 · 0 comments
Closed

Use static slot id bound to reader name #8

CardContact opened this issue Aug 27, 2015 · 0 comments

Comments

@CardContact
Copy link
Owner

Slot ids are allocated sequentially when readers are detected or virtual slots are created. Therefore slot ids may change if the reader detection or card insertion occurs in different sequence.

This issue can be resolved if the slot id is derived from the reader name, e.g. using a CRC32 over the reader name reported by PC/SC. Virtual slots for that reader will get an incremented slot id.

As the slot id may not be unique, this feature must be explicitly enabled by defining the PKCS11_READER_FILTER environment variable (e.g. PKCS11_READER_FILER=*)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant