Ticket #179 (closed defect: fixed)

NB! Read about ReportingBugs before filing a ticket!

Opened 3 years ago

Last modified 2 years ago

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

gemsafeV1.key_ref.patch Download (2.6 KB) - added by dengert 3 years ago.
patch to pkcs15-gemsafeV1.c

Change History

Changed 3 years ago by dengert

patch to pkcs15-gemsafeV1.c

comment:1 Changed 3 years ago by aj

  • Status changed from new to closed
  • Resolution set to fixed

applied to trunk - rev3557.

comment:2 Changed 2 years ago by martin

  • Milestone 0.11.5 deleted

Milestone 0.11.5 deleted

Note: See TracTickets for help on using tickets.