Fwd: Re: OpenSC segfaulting Firefox 1.0.6

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Re: OpenSC segfaulting Firefox 1.0.6

Markus Lervik


D'oh, midnight maddness and I forgot to click "Reply to all". Terribly sorry :(

----------  Forwarded Message  ----------

Subject: Re: [opensc-devel] OpenSC segfaulting Firefox 1.0.6
Date: Wednesday 24 August 2005 01:51
From: Markus Lervik <[hidden email]>
To: Nils Larsch <[hidden email]>

On Tuesday 23 August 2005 23:49, you wrote:

> this should be a minor problem, just add a
>   { "3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44", NULL,
>     SC_CARD_TYPE_SETCOS_FINEID_V2, 0 }
> entry to the atr table in card-setcos.c

Ok, did that, and now I get

mle@linux:~/opensc/src> opensc-tool -n
SetCOS
iso7816.c:98:iso7816_check_sw: Class not supported
iso7816.c:440:iso7816_select_file: returning with: Unsupported CLA byte in APDU
card.c:762:sc_select_file: returning with: Unsupported CLA byte in APDU

Attaching the log at the end.

> > mle@linux:~> opensc-tool -na
> > 3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44
> > Unidentified card
> >
> > pkcs15-tool seems to semi-work, it appears to read stuff from the card,
> > except it (and pkcs11-tool) complains about invalid ASN.1 type: 19.
>
> could you send us the debug log (just set the debug level in the
> opensc.conf to 6 and let opensc dump the log to a file) ? I would
> like know where exactly this asn.1 error occurs.
Oddly enough, after adding the ATR to the atr-table, it doesn't complain about the
invalid ASN.1 type: 19 anymore. I've attached a debug log without the appropriate ATR-
line too.

Attachments:
opensc-tool_n.log  -  opensc-tool run with the -n option
pkcs15-tool_c.log.zip  -  pkcs15-tool run with the -c option with the corret ATR in the atr-list missing (HUGE)
pkcs15-tool_c.log2  - pkcs15-tool run with the -c option with the correct ATR added

Note: I Compressed the pkcs15-tool_c.log -file, because it was over 50KB, but it is available also over at
http://dev.necora.fi/markus/opensc/pkcs15-tool_c.log.txt

--
Markus Lervik
Chief Technology Officer
[hidden email]
http://www.necora.fi
+358-40-832 6709


-------------------------------------------------------

--
Markus Lervik
Chief Technology Officer
[hidden email]
http://www.necora.fi
+358-40-832 6709

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel

opensc-tool_n.log (7K) Download Attachment
pkcs15-tool_c.log.zip (6K) Download Attachment
pkcs15-tool_c.log2 (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: OpenSC segfaulting Firefox 1.0.6

Nils Larsch
Markus Lervik wrote:
...

>>this should be a minor problem, just add a
>>  { "3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44", NULL,
>>    SC_CARD_TYPE_SETCOS_FINEID_V2, 0 }
>>entry to the atr table in card-setcos.c
>
>
> Ok, did that, and now I get
>
> mle@linux:~/opensc/src> opensc-tool -n
> SetCOS
> iso7816.c:98:iso7816_check_sw: Class not supported
> iso7816.c:440:iso7816_select_file: returning with: Unsupported CLA byte in APDU
> card.c:762:sc_select_file: returning with: Unsupported CLA byte in APDU

sorry, my fault. Please try:

{ "3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44", NULL, NULL,
     SC_CARD_TYPE_SETCOS_FINEID_V2, 0 }

instead

...
>>could you send us the debug log (just set the debug level in the
>>opensc.conf to 6 and let opensc dump the log to a file) ? I would
>>like know where exactly this asn.1 error occurs.
>
>
> Oddly enough, after adding the ATR to the atr-table, it doesn't complain about the
> invalid ASN.1 type: 19 anymore.

I've committed a patch which should fix this, please try a new snapshot.

Nils
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel