[Patch] 0001-Support-for-winscard.dll.patch

frechdachs69 frechdachs69 at sofortsurf.de
Sat Aug 30 03:30:10 CDT 2008

Hi Mounir,

this morning I have found spare time to do a quick check of the 
winscard.dll.so you provided.

So on my 64Bit AMD64 system your .so works fine so far. Maybe we can address 
the structure alignment problem during the next weeks/months? Let us see ... 

One thing: while /usr/sbin/testpcsc correctly states that I have two Omnikey 
3121 (one with serial number, one without) attached to my machine my Windows 
application shows only one. Maybe my (intended) fault: I have to look at the 
source code of my app at work (just have the binary here at home) next week 
whether I have a check inside for an existing smartcard reader serial number. 
Maybe I omit readers without a serial number ... I am coming back next week.

I would be very lucky to have winscard support officially integrated into 
HEAD. One step further towards not needing Windows anymore to test my 
application ...

Another interesting thing for me: accessing a Windows machine A using RDP from 
a machine B makes the readers at A unavailable. That's something not 
happening when using X11 as the access protocol.

Next thing: when I am locally logged into a Windows machine other 
users/services do not have smartcard access anymore.

Both problems are really annoying for me ... so you see my motivation to get 
this stuff up and running.


Am Montag, 25. August 2008 17:09:22 schrieb frechdachs69:
> Thanks ... I am going to have a deep look into your sources.
> Regards
> Heiko
> Am Montag, 25. August 2008 10:56:25 schrieb Mounir IDRASSI:
> > Hi All,
> >
> > I have just been informed by one of my contacts that this discussion
> > about Winscard has started.
> > As the original author of Winscard for Wine, I'd like to inform you that
> > I have already posted a fully functional Winscard patch for Wine on April
> > 2007. Here is the link to it :
> >
> > http://www.winehq.org/pipermail/wine-devel/2007-April/056432.html
> >
> > Afterwards, my complete patch was not accepted because I was relying on
> > the fact that alignment of the Winscard structures coming from the WIN32
> > world is the same as the alignment expected by pcsclite on the system on
> > which Wine is running. My assumption is true for Linux 32Bit but I
> > clearly can't guarantee that on other platforms.
> >
> > Anyway, my implementation is running production systems on two of my
> > customers under Linux 32bit (Ubuntu, CCID readers) and it has been tested
> > by many users who contacted me directly to provide them with the full
> > featured winscard version. For that, I distribute the winscard binary for
> > 32-bit Linux systems under the following link :
> >
> > http://www.idrix.fr/Root/SCard4Wine/winscard.tar.gz
> >
> > I think it would be more efficient if your effort can benefit from my
> > patch and all the experience I have put on it. The source from my side
> > has evolved a little bit but it remains close to the original posting. I
> > hope there will room for collaboration of this to provide a maximum
> > number of Wine users with smart cards functionalities.
> >
> > Cheers,
> > --
> > Mounir IDRASSI
> > http://www.idrix.fr

More information about the wine-devel mailing list