Re: [opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Juan Antonio Martinez
El mar, 26-10-2010 a las 11:58 +0200, Peter Stuge escribió: > Juan Antonio Martinez wrote: > > An ideal solution for me (and for the other people that is working > > with SM cards) would be adding a new card operation > > "card_transmit_apdu()", that defaults in iso7816.c to > > sc_transmit_apdu(),

Re: [opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Frank Morgner
On Tuesday, October 26 at 11:58AM, Peter Stuge wrote: > Juan Antonio Martinez wrote: > > An ideal solution for me (and for the other people that is working > > with SM cards) would be adding a new card operation > > "card_transmit_apdu()", that defaults in iso7816.c to > > sc_transmit_apdu(), but c

Re: [opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Peter Stuge
Juan Antonio Martinez wrote: > An ideal solution for me (and for the other people that is working > with SM cards) would be adding a new card operation > "card_transmit_apdu()", that defaults in iso7816.c to > sc_transmit_apdu(), but can be overriden when needed. I don't think this would be ideal,

Re: [opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Viktor TARASOV
Juan Antonio Martinez wrote: > Working in new code for DNIe card, I've found a problem: > sc_transmit_apdu() must be overriden to allow secure messaging > routine perform apdu wrapping when SM is on > > I've coded a kind of "virtual channel" that hides SM issues from > my code. Every sc_transmit_ap

Re: [opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Frank Morgner
On Tuesday, October 26 at 11:05AM, Juan Antonio Martinez wrote: > Working in new code for DNIe card, I've found a problem: > sc_transmit_apdu() must be overriden to allow secure messaging > routine perform apdu wrapping when SM is on > > I've coded a kind of "virtual channel" that hides SM issues

[opensc-devel] About SM and wrapping of sc_transmit_apdu()

2010-10-26 Thread Juan Antonio Martinez
Working in new code for DNIe card, I've found a problem: sc_transmit_apdu() must be overriden to allow secure messaging routine perform apdu wrapping when SM is on I've coded a kind of "virtual channel" that hides SM issues from my code. Every sc_transmit_apdu() call is translated into dnie_trans