Ticket #108 (new defect)
PKCS#11 - Session handlers must be validated before use
| Reported by: | alonbl | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | pkcs11 | Version: | trunk |
| Severity: | major | Keywords: | |
| Cc: | kaups@… |
Description
When card is removed/inserted, C_FindObjectsInit succeeds with previous session handle when it should failed with CKR_DEVICE_REMOVED or any other error. All session handlers must be invalidated when card is removed.
I guess session_start_operation at misc.c should be modified to test the actual status of the session before returning.
Change History
Note: See
TracTickets for help on using
tickets.
