Ticket #110 (new defect)

Opened 2 years ago

Module version control should be updated

Reported by: jmt Owned by: opensc-devel@…
Priority: normal Milestone:
Component: opensc Version: 0.11.1
Severity: normal Keywords:
Cc:

Description

All three possible module loaders (card, pkcs15emu and pkcs15init) first load a module and then use sc_driver_version to check version.

Code in src/libopensc/ctx.c src/libopensc/pkcs15-syn.c and src/pkcs15init/pkcs15-lib.c check againts "0.9" or "0.9.3" using strcmp or strncmp (all implementations are different).

This seem to reflect the OpenSC version to which the module is developped to (since opensc refuses to load modules that have greater module versions than that).

If I understand the code correctly there are 2 bugs: 1.- The version should be updated to current version 2.- The code 2 compare versions should be more sophisticated, since "0.11.1" is lower lexicographically than "0.9.3".

Thanks in advance,

Josep

Note: See TracTickets for help on using tickets.