Dear all, I'm a happy user of OpenSC stuff since some time.
Recently, by testing my SW with the latest release of smart card 
software, I stumbled on a problem that I never had.

Using a common smart card (InCrypto 34v2) I had this *CUSTOMized* log in 
my application:

Ubi: id string too long (slot_NN-id_NN slot_00-id_65725359524e796c)

this, after I changed line 364 of engine_pkcs11.c that simply stated "id 
string too long" (I wanted to tell it apart from similar messages).

As you see, it seems that the identifier "slot_00-id_65725359524e796c" 
is rejected by the parser.

In my humble opinion the problem is in line 340 where I read

*id_len = 0;

That will trigger the condition in line 363

(strlen(slot_id) - i - 3 + 1) / 2 > *id_len)

I had to comment line 340 to make things work again.
Can anybody confirm this?
Which is the most logical fix?

I don't dare to go beyond because
1) I'm really busy
2) I don't know the project sufficiently


Some more info:

SW compiled on a Slackware 12.2 for IA 32 bit
engine_pkcs11-0.1.5
opensc-0.11.8
nothing special in compilation options

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to