OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

From: Sébastien Lorquet (squalylgmail.com)
Date: Thu Nov 05 2009 - 01:53:16 CST


Hi,

I will add that AF_* are constants for address families in struct sockaddr
datastructures.

The socket() call need PF_* protocol families constants.

If PF_UNIX is defined on all supported platform, this is what I would
recommend to use instead of redefining AF_LOCAL.
Any idea I'm missing?

Sebastien Lorquet

On Wed, Nov 4, 2009 at 10:56 PM, Douglas E. Engert <deengertanl.gov> wrote:

>
>
> Ludovic Rousseau wrote:
>
>> Hello,
>>
>> I updated the online version to svn-4527 with an important bug correction.
>> But since I got no feedback from my previous announce I guess no one
>> ever tried to build or use these beta versions. Bad news :-(
>>
>> You should report bugs _now_.
>>
>
> On Solaris 10, AF_LOCAL is not defined, but AF_UNIX is.
> See attached patch.
>
> With the above it runs using the Solaris /usr/sfw/bin/gcc
> and the /usr/sfw/lib/libusb:
>
>
> PC/SC lite has been configured with following options:
>
> Version: 1.5.5
> System binaries: /opt/smartcard/sbin
> Configuration files: /opt/smartcard/etc
>
>
> Host: sparc-sun-solaris2.10
> Compiler: gcc
> Preprocessor flags: -I${top_srcdir}/src -DDEBUG -I/include -D_TS_ERRNO
> -I/usr/local/include
> Compiler flags: -Wall -fno-common -g
> Preprocessor flags: -I${top_srcdir}/src -DDEBUG -I/include -D_TS_ERRNO
> -I/usr/local/include
> Linker flags: -g -R/opt/smartcard/lib,/usr/sfw/lib -L/lib
> -L/usr/local/lib -R/usr/local/lib
> Libraries: -lsocket
>
> PTHREAD_CFLAGS: -D_REENTRANT -pthreads
> PTHREAD_LIBS:
> PCSC_ARCH: Solaris
>
> libhal support: no
> libusb support: yes
> USB drop directory: /opt/smartcard/pcsc/drivers
> ATR parsing messages: false
> confdir: /etc
> ipcdir: /var/run/pcscd
>
>
>
>
>
>> Bye
>>
>> 2009/10/21 Ludovic Rousseau <ludovic.rousseaugmail.com>:
>>
>>> Hello,
>>>
>>> I worked on the internals of pcsc-lite. I changed the way libpcsclite
>>> and pcscd are communicating:
>>> - no more use of a shared memory segment
>>> - no more distinction between short and extended APDU
>>> - and some other improvements
>>>
>>> I would like to have beta testers of this version. I only tested it on
>>> GNU/Linux (and recompiled it on Mac OS X). I would like to have
>>> reports from Solaris and *BSD users in particular.
>>>
>>> The source code is available at [1].
>>>
>>> Thanks
>>>
>>> [1] http://ludovic.rousseau.free.fr/softwares/pcsc-lite/
>>>
>>
>>
> --
>
> Douglas E. Engert <DEEngertanl.gov>
> Argonne National Laboratory
> 9700 South Cass Avenue
> Argonne, Illinois 60439
> (630) 252-5444
>
> Index: src/winscard_msg.c
> ===================================================================
> --- src/winscard_msg.c (revision 4529)
> +++ src/winscard_msg.c (working copy)
> -62,6 +62,9
> int one;
> int ret;
>
> +#ifndef AF_LOCAL
> +#define AF_LOCAL AF_UNIX
> +#endif
> ret = socket(AF_LOCAL, SOCK_STREAM, 0);
> if (ret < 0)
> {
> Index: src/winscard_msg_srv.c
> ===================================================================
> --- src/winscard_msg_srv.c (revision 4529)
> +++ src/winscard_msg_srv.c (working copy)
> -102,6 +102,10
> /*
> * Create the common shared connection socket
> */
> +#ifndef AF_LOCAL
> +#define AF_LOCAL AF_UNIX
> +#endif
> +
> if ((commonSocket = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0)
> {
> Log2(PCSC_LOG_CRITICAL, "Unable to create common socket:
> %s",
>
> _______________________________________________
> Muscle mailing list
> Musclelists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle
>
>

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle