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 ??
thanks,
Tulio Salvaro
On 9/2/06, Nils Larsch <[EMAIL PROTECTED]> wrote:
Tulio Salvaro wrote:
> Hi,
>
> Are there any idea about starcos SPK 2.4/ SPK 2.5 / SPK 3.0 support
> ??? Today, only starcos SPK 2.3 is supported.
afaik are SPK 2.4/5 very similar to SPK 2.3 => they should already work
with the current driver.
Starcos 3.0 is afaik a completely different card operating system (I heard
it should be somewhat similar to seccos) and at least I don't have the
card os manual and/or a testcard so I can't write a driver.
Cheers,
Nils
--
Tulio Salvaro
GoogleTalk: [EMAIL PROTECTED]
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel