Ticket #181 (new defect)
pkcs11 C_GetMechanismList segfaults if not card in slot
| Reported by: | dengert | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | opensc | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I am trying to use opensc-pkcs11.so on Solaris 10, as a plugin for the Solaris 10 /usr/lib/libpkcs11.so. This is done using the the cryptoadm install command.
The cryptoadm list -v will try and call the C_GetMechanismList for every slot. If there is no card in the slot, opensc-pkcs11 may segfault.
The attached patch gets around this.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
