On Thursday, June 30 at 07:08PM, Juan Antonio Martinez wrote: > 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
0x6987 and 0x6988 are specified by ISO and could very well be integrated in the iso card driver. Cheers, Frank.
pgpcUkR0cjVS7.pgp
Description: PGP signature
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel