Ticket #179 (closed defect: fixed)
NB! Read about ReportingBugs before filing a ticket!
pkcs15-gemsafeV1.c assmes key_ref is always 3
| Reported by: | dengert | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | opensc | Version: | trunk |
| Severity: | major | Keywords: | gemsafeV1 key_ref |
| Cc: | david.mattes@… | Blocked By: | |
| Blocking: |
Description
The pkcs15-gemsafeV1.c code assumes that the key_ref is always 3. But that is not always the case. In our case it is 4. The patch tries to determine the key_ref by looking at what appears to be a table of allocated keys, and picking the first allocated key.
In case this is not always true, the patch will also allow for the the opensc.conf card flag = n to specify the key_ref as the low order 4 bits of the flag.
The attached patch is against the SVN.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


patch to pkcs15-gemsafeV1.c