> On Mar 20, 2010, at 21:11 , Alejandro Vargas wrote:
> > Hello. I an trying to get working a binary card driver for a different 
> > version.
> > 
> > The driver is for the spanish DNI and it is distributed as a binary
> > file, then I cannot re-compile it. Then I think I could build a dummy
> > card driver that only loads the binary shared object and wraps the
> > functions. My problem is I don't know enough about the working of
> > opensc. Is there something like a sample skeleton of a card driver or
> > a document on how-to create one? I need to know what are the names of
> > the functions that must be imported from the shared object, etc.
> It has come to our attention that the Spanish DNI card software for Mac OS X 
> is using OpenSC not via a loadable card driver module 
> but with direct merging/linking. Which means there must be published source 
> somewhere.

> Maybe you can help us find the source instead (or help communicating with the 
> agency distributing the software if the source is not published)

There is an interesting document about reverse engineer of proprietary 
libopensc-dnie.so library at:
http://espana.barrapunto.com/es/10/03/20/2251222.shtml
The full pdf is at:
http://blog.48bits.com/wp-content/uploads/2010/03/articulo.pdf
(in spanish, sorry)

There is also several people working in create a full source free driver for 
spanish eDNI card.
In the meanwhile, I've developed a wrapper to create a fake function 
sc_driver_version() to tell opensc
that proprietary library module version is ok.

It's a dirty trick, but works. I've sent it to Alejandro in a separate mail

The free opensc spanish eDNI driver is still a political battle... but we are 
near to bypass politics :-b

BTW: I'm not feel comfortable with patching ctx.c to allow bypass of checking 
module version:
The intend is force developers to release free drivers, or duplicate efforts to 
compile and recompile again 
on every OpenSC version for every Linux distribution, not to make proprietary 
driver developers life easy ;-)

Juan Antonio

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

Reply via email to