-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge cardmod reader driver with pcsc reader driver #892
Comments
Absolutely. I practically gave up on OpenSC after the merge of this one. |
Maybe I am missing something here. The cardmod driver is in ./reader-pcsc.c. The main difference is reader-pcsc.c looks at all readers PC/SC provides and presents all the readers to the calling application so the application can select a reader. Cardmod driver is given a pcsc_context_handle and pcsc_card_handle Microsoft code has already selected the reader and opened a PC/SC connection and passed these to the minidriver. And while the minidriver is still running the Microsoft code can presents a new pcsc_context_handle and pcsc_card_handle. The Microsoft code also handles the PCSC locking as best I can tell. The main difference is thus: "Merge cardmod and PC/SC driver! Remove some code and use the same configuration blocks." is a start. |
OK, great! Thanks for the feedback. |
With this commit the user doesn't need a special configuration block for the PC/SC readers that are used by the minidriver ("cardmod driver"). All user configuration is now done in the "pcsc" section. Fixes OpenSC#892
With this commit the user doesn't need a special configuration block for the PC/SC readers that are used by the minidriver ("cardmod driver"). All user configuration is now done in the "pcsc" section. Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes OpenSC#892
- pcsc driver takes over all the functionality - no dedicated reader driver config values for cardmod, use application specific blocks to define a different behavior for the pcsc reader if needed - removes legacy code; requiring at least libpcsclite 1.6.5 Fixes #892
Expected behaviour
PC/SC reader driver should be identical to the reader driver that's used in the minidriver ("cardmod").
Actual behaviour
opensc.conf
.max_send_size
andmax_recv_size
for both, the pcsc reader and the cardmod reader (while the latter is undocumented, as said above) for a reader that doesn't announcedwMaxAPDUDataSize
.reader-pcsc.c
reader-pcsc.c
contains comments about removing cardmod driver somewhere in the future.How to proceed?
Merge cardmod and PC/SC driver! Remove some code and use the same configuration blocks.
Since the cardmod driver has been there for years, I'd like to know if the early maintainers are fine with this... @martinpaljak @dengert @viktorTarasov
The text was updated successfully, but these errors were encountered: