Tulio Salvaro wrote:
Well,

I tried to use SPK 2.4 smartcards but it has not worked. I changed two structs from the card-starcos.c file:

static struct sc_atr_table starcos_atrs[] = {
{ "3B:B7:94:00:c0:24:31:fe:65:53:50:4b:32:33:90:00:b4", NULL, NULL, SC_CARD_TYPE_STARCOS_GENERIC, 0, NULL }, { "3B:B7:94:00:81:31:fe:65:53:50:4b:32:33:90:00:d1", NULL, NULL, SC_CARD_TYPE_STARCOS_GENERIC, 0, NULL }, { "3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25", NULL, NULL, SC_CARD_TYPE_STARCOS_GENERIC, 0, NULL },
        { NULL, NULL, NULL, 0, 0, NULL }
};

static struct sc_card_driver starcos_drv = {
        "STARCOS SPK 2.3/2.4",
        "starcos",
        &starcos_ops,
        NULL, 0, NULL
};

I put only the ATR value. I compiled and try to use with SPK 2.3:

16:45 waikiki:../src/libopensc # pkcs15-tool -v -c
Connecting to card in reader Gemplus GemPC Twin 00 00...
Using card driver STARCOS SPK 2.3/2.4.
Trying to find a PKCS#15 compatible card...
Found Tulio Salvaro                   !
Card has 1 certificate(s).

X.509 Certificate [SalvaroCA - Server II]
        Flags    : 2
        Authority: no
        Path     : 4300
        ID       : dc069d6707a8d95b8ed898afa7aef485830591b5

16:45 waikiki:../src/libopensc #

with SPK 2.4:
16:45 waikiki:../src/libopensc # pkcs15-tool -v -c
Connecting to card in reader Gemplus GemPC Twin 00 00...
Using card driver STARCOS SPK 2.3/2.4.
Trying to find a PKCS#15 compatible card...
pkcs15.c:502:sc_pkcs15_bind_internal: unable to enumerate apps: Wrong length
pkcs15.c :711:sc_pkcs15_bind: returning with: Unsupported card
PKCS#15 initialization failed: Unsupported card
16:46 waikiki:../src/libopensc #

Once I made this modification and it has worked. OpenSC was a old version, maybe 0.9.6 ...

Can you help me ?? Are there any suggestion ??

this bug should be fixed in the current trunk. Please test a recent
snapshot (addtionally I've added the 2.4 atr to the list in card-starcos.c).

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

Reply via email to