Hello François (Cc added to opensc-devel) On Jan 18, 2010, at 4:00 PM, François Leblanc wrote: > On Jan 18, 2010, at 12:28 PM, François Leblanc wrote: >>> I wish to add sc_apdu_log, sc_apdu_get_octets and sc_apdu_set_resp to >> Why do you want to do that? These are internal functions and should not be >> >used outside of libopensc. > > It's amazing since you can build module for drivers but you can't access > to data to send to cards ?? I don't understand why to give possibility to > make modules and not to use them... The fact that you can have "reader plugins" is an old concept, since there were more API-s back in time, out of which CT-API is old and deprecated and the same starts to apply to OpenCT. So yes, there's a code-level thing to write plugins but unless justified (and unless it really is a very special "interface") it should not be encouraged. Having an external plugin for PC/SC would not be useful from OpenSC point of view nor would it make sense to 100% duplicate reader-pcsc.c.
>>> I need doing this since I wan't to provide a pcsc drivers in separate dll >> What do you need to change and why the builtin pcsc driver does not work >> >for you (or what kind of changes would it need)? > >> Martin > > Like I've already said, the windows minidrivers to use opensc in standard > Windows api need to use a channel already opened so I need to give the > SCardChannel and SCardContext handles to pcsc driver and to forbidden > functions like connect, disconnect, reset, cards.... Yes, I understand and that's why I asked what kind of changes would it need to use the existing codebase. This also depends on how the minidriver makes use of libopensc. There have been other incarnations of basecsp plugins and the same issue has been (tried to) addressed before. So I believe that with little discussion on the list we can find a way to integrate it in libopensc core. > So I make a dll with it's own pcsc drivers, I can send a patch to show how > it's working... I would prefer to use the codebase present in reader-pcsc.c. But please, do sent the patch as well, I might not know what I'm talking about. Martin. _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel