2

I am maintaining an application that uses PKCS#11 to talk to a smartcard. Somehow a session gets generated, but i cant figure out where in the code.

I am using c# and the PKCS11Interop wrapper. The funny thing is that if in my main application i do a slot.GetTokenInfo() i can see that there is one session open, but if i create a test project and do the same thing there, GetTokenInfo() on the same slot, it shows that there are currently no sessions open. Does the smartcardreader somehow only show the current process active sessions, and not the total number of open sessions?

randoms
  • 131
  • 4

1 Answers1

1

Sessions in PKCS#11 are always specific to the current process, so it is no big surprise that you cannot see the session from a different one.

mat
  • 2,558
  • 1
  • 14
  • 28