Drop dependency on pcsc-lite

Reinhard Tartler siretart
Wed Jul 23 10:19:52 PDT 2008


Jouni Malinen <j at w1.fi> writes:

> On Wed, Jul 23, 2008 at 11:17:18AM +0200, Reinhard Tartler wrote:
>
>> In ubuntu, we are currently considering the pcsc-lite support of
>> wpa_supplicant. We currently do not support the pcsc-lite package in the
>> 'main' component of ubuntu, and are pondering a way of avoiding that. In
>> other words, we look for some way for enabling smartcard support without
>> having the pcsc-lite package available at build time.
>
> You need pcsc-lite header files to build pcsc_funcs.c, so I don't think
> this exact requirement would be met, but it may be more feasible to make
> a binary package that can be run both with and without pcsc-lite library
> (.so/.a) being present.

AFAIUI, the "pcsc-lite header files" is the single file
/usr/include/PCSC/winscard.h, which is rather short. Since the
implemented PCSC API is rather stable I think we ship a copy of that
file as patch in the wpa_supplicant package.

>> A technical solution would be to include use dlopen() the
>> libpcsclite.so.1 library. Now I would like to ask you if you think this
>> approach feasible/acceptable and would consider an according patch to that.
>
> Actually, Windows port of pcsc_funcs.c is already using LoadLibrary()
> when built with MinGW, so something very similar is already present. I
> would need to see a patch before being able to say whether it is
> acceptable, but as far as this type of approach is concerned, I think it
> would be feasible for 0.6.x branch.

Yes, this is the branch that ubuntu (and debian, btw) is shipping atm.

thanks for your feedback on this!

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4




More information about the Hostap mailing list