El jue, 30-06-2011 a las 19:58 +0300, Thomas Grenman escribió:
> Hi
> 
> > It seems to me that the card (or the relevant applet) is programmed to
> > return 6A88 instead of 6A82. Just to be sure: what happens if you try
> > opensc-explorer and try to cd to any non-existent DF with debug on,
> 
> Yes, the error code comes from the card. And just as you expected, 
> opensc-exploring a non-existent DF will return the same SW.

Not sure if this helps...

In OpenDNIe[1] we had a similar problem: on SM establishment we need to
override default meaning of some error codes, to get a common SM error
and parse it. I solved it by mean of providing own check_sw() at
card_ops function pointers.
A similar solution may be usefull for you: detect which operation is in
turn and parse sw error codes, falling back to normal iso_check_sw if
wrap is not needed

Juan Antonio
[1]
https://github.com/jonsito/OpenSC/blob/master/src/libopensc/card-dnie.c

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

Reply via email to