Skip to content
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

C_WaitForSlotEvent() missed during PIN entry (C_OpenSession()) #143

Closed
dirkx opened this issue Mar 16, 2013 · 2 comments
Closed

C_WaitForSlotEvent() missed during PIN entry (C_OpenSession()) #143

dirkx opened this issue Mar 16, 2013 · 2 comments

Comments

@dirkx
Copy link
Contributor

dirkx commented Mar 16, 2013

It seems that once C_OpenSession() is entered; the physical removal is not noted in the C_WaitForSlotEvent() (polling) loop.

So code like

  C_OpenSession
  if (PIN needed)
       ask for pin
  ...
  C_Login()

with a separate polling thread on C_WaitForSlotEvent() will not note the removal during that ask-pin period (but will do post C_Login()).

A work around is

  C_OpenSession
  if (PIN needed)
       C_CloseSession)
       ask for pin
       C_OpenSession
  ...
  C_Login()

but this does not help firefox/mozilla and the keychain tokend adaptor. The result is a hang in firefox.

Dw

@frankmorgner
Copy link
Member

does the problem still occur with the newest version of opensc?

Could you provide a debug log of OpenSC?

Which version of Firefox is affected?

@frankmorgner
Copy link
Member

please reopen the issue when new information is available or if you know how to solve the problem inside of OpenSC

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

No branches or pull requests

2 participants