Henryk Plötz wrote:
Moin,

I have a PKCS#15 card (Starcos SPK 2.3) which I formatted with opensc
quite some time ago (the certificate is dated September 2005). It now
causes pkcs15-tool --list-pins to crash.
I traced the error to src/tools/pkcs15-tool.c line 891 (current svn).
Apparently on this card the pin types are all set to -1 (the
corresponding ASN.1 encoding is 0a 04 ff ff ff ff). Attached is a patch
to make pkcs15-tool not crash.

A quick grep through the sources shows that most other places handle
pin types with switch constructs with default clauses so they should
not be affected.

patch applied

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

Reply via email to