-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
IFDStatusICC returns SCARD_S_SUCCESS after the reader is removed #92
Comments
I can't find What is the problem exactly? |
Sorry, it was a typo: Basically a waiter for SCardGetStatus will not get a result when the reader is removed |
Have you tried to reproduce the bug with a sample code? |
@andrei-datcu any news about this problem? |
Sorry, no repro on hand, but please allow me to expand on the static analysis: Ever since this change, This means that this code is now dead and no longer executes. |
I guess you are right. What is the problem at the PC/SC API level? Do you have a sample code to show this problem? |
The code https://github.com/LudovicRousseau/PCSC/blob/210efa525f50e99821a10d91b8c861825e470d8b/src/ifdwrapper.c#L369 is not used only when you use the CCID driver. Other drivers may still report Unless you can show a real PC/SC application sample code with a problem I consider this as a non-issue and close it. |
Ever since this patch
IFDStatusICC
returnsSCARD_S_SUCESS
if the read fails. That's becauseIFDHICCPresence
doesn't returnIFD_NO_SUCH_DEVICE
anymore. Upon a static code inspection, this means that nobody will ever setSCARD_UNKNOWN
because the status handler thread get a success fromIFDStatusICC
The text was updated successfully, but these errors were encountered: