Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

View: New views
12 Messages — Rating Filter:   Alert me  

Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Ludovic Rousseau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 rebort bugs _now_.

Bye

2009/10/21 Ludovic Rousseau <ludovic.rousseau@...>:

> 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/

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by raghu . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 I tested it on CentOS wondering if it could increase the speed of reading mifare on Omnikey5321 (though i do not know why it is slow). I did not find any bugs. (no increase in speed as well :-))

Regards
Raghu

On Fri, Oct 30, 2009 at 2:34 PM, Ludovic Rousseau <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 rebort bugs _now_.

Bye

2009/10/21 Ludovic Rousseau <ludovic.rousseau@...>:
> 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/

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle


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

Parent Message unknown Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Tamás Gulácsi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>

> 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 rebort bugs _now_.
>
> Bye
>
Hello Ludovic,

The new version compiles fine on Ubuntu 9.10 (karmic) AMD64.
And for my great suprise, the Smart Enterprise Guardian [Smart Card
Reader] (106A1D11163057150508)
is working!!! (at least the reader is installed).

But (just as openct/opensc) the reader seems to work, (pscs_scan output):
Sat Oct 31 07:01:32 2009
 Reader 0: Smart Enterprise Guardian [Smart Card Reader]
(106A1D11163057150508) 00 00
  Card state: Card inserted,
  ATR: 3B 16 96 41 73 74 72 69 64

ATR: 3B 16 96 41 73 74 72 69 64
+ TS = 3B --> Direct Convention
+ T0 = 16, Y(1): 0001, K: 6 (historical bytes)
  TA(1) = 96 --> Fi=512, Di=32, 16 cycles/ETU
    250000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 312500 bits/s
+ Historical bytes: 41 73 74 72 69 64
  Category indicator byte: 41 (proprietary format)


But muscletools' muscleTool says "No Valid Tokens Found" for the
"token" command. Surely this means I don't know what/how to do with a
working pcscd, how to manage my card - any suggestions appreciated!

Thanks for the great work,

Tamás Gulácsi

[pcsc-lite-20091031T070639.log]



## pwd
/usr/local/src


## ls -l
összesen 941
drwxr-xr-x  8 gthomas gthomas   1024 2009-10-31 06:49 ccid-1.3.11-svn-4527
-rw-r--r--  1 gthomas gthomas 425348 2009-10-30 09:43 ccid-1.3.11-svn-4527.tar.bz2
drwxr-xr-x 11 gthomas root      1024 2009-10-17 09:29 compcache
drwxr-xr-x 36 gthomas root      6144 2009-09-01 06:23 mplayer
drwxr-xr-x  6 gthomas gthomas   1024 2009-10-31 06:48 pcsc-lite-1.5.6-svn-4527
-rw-r--r--  1 gthomas gthomas 488124 2009-10-30 09:43 pcsc-lite-1.5.6-svn-4527.tar.bz2
-rw-r--r--  1 gthomas gthomas  11688 2009-10-31 06:52 pcsc-lite-20091031T065133.log
-rw-r--r--  1 gthomas gthomas  23425 2009-10-31 07:05 pcsc-lite-20091031T065424.log
-rw-r--r--  1 gthomas gthomas     35 2009-10-31 07:06 pcsc-lite-20091031T070639.log
-rw-r--r--  1 gthomas gthomas    393 2009-10-09 06:16 pcsc-lite.sh


## uname -a
Linux hackworth 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux


## lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 08e6:8000 Gemplus
Bus 001 Device 005: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 001 Device 004: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 001 Device 003: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 413c:a005 Dell Computer Corp. Internal 2.0 Hub


## /usr/local/sbin/pcscd --version
pcsc-lite version 1.5.6-svn-4527.
Copyright (C) 1999-2002 by David Corcoran <corcoran@...>.
Copyright (C) 2001-2008 by Ludovic Rousseau <ludovic.rousseau@...>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron@...>.
Report bugs to <muscle@...>.
Enabled features: Linux libhal usbdropdir=/usr/local/pcsc/drivers confdir=/etc ipcdir=/var/run/pcscd


## sudo env LIBCCID_ifdLogLevel=0x0007 /usr/local/sbin/pcscd --foreground --debug --apdu
debuglog.c:230:DebugLogSetLevel() debug level=debug
debuglog.c:259:DebugLogSetCategory() Debug options: APDU
pcscdaemon.c:488:main() pcsc-lite 1.5.6-svn-4527 daemon ready.
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x08E6, PID: 0x8000
hotplug_libhal.c:366:HPAddDevice() Adding USB device: usb_device_8e6_8000_106A1D11163057150508_if1
readerfactory.c:933:RFInitializeReader() Attempting startup of Smart Enterprise Guardian [Smart Card Reader] (106A1D11163057150508) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:802:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:1592:init_driver() Driver version: 1.3.11-svn-4527
ifdhandler.c:1605:init_driver() LogLevel: 0x0003
ifdhandler.c:1615:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x0007
ifdhandler.c:1625:init_driver() DriverOptions: 0x0000
ifdhandler.c:82:IFDHCreateChannelByName() lun: 0, device: usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1
ccid_usb.c:162:OpenUSBByName() Reader index: 0, Device: usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1
ccid_usb.c:279:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@...)
ccid_usb.c:289:OpenUSBByName() ProductString: Generic CCID driver
ccid_usb.c:295:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
ccid_usb.c:377:OpenUSBByName() Checking device: 001/007
ccid_usb.c:431:OpenUSBByName() Trying to open USB bus/device: 001/007
ccid_usb.c:495:OpenUSBByName() Found Vendor/Product: 08E6/8000 (Smart Enterprise Guardian)
ccid_usb.c:497:OpenUSBByName() Using USB bus/device: 001/007
ccid_usb.c:943:ControlUSB() request: 0x03
receive:
ccid_usb.c:887:get_data_rates() IFD does not support GET_DATA_RATES request: error sending control message: Broken pipe
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFB0, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
readerfactory.c:249:RFAddReader() Using the pcscd polling thread
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAE, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
ifdhandler.c:453:IFDHGetCapabilities() Reader supports 1 slot(s)
ifdhandler.c:1087:IFDHPowerICC() action: PowerUp, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
-> 000000 62 00 00 00 00 00 04 00 00 00
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x08E6, PID: 0x8000
hotplug_libhal.c:366:HPAddDevice() Adding USB device: usb_device_8e6_8000_106A1D11163057150508_if0
<- 000000 80 09 00 00 00 00 04 00 00 00 3B 16 96 41 73 74 72 69 64
Card ATR: 3B 16 96 41 73 74 72 69 64
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAF, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
readerfactory.c:515:RFSetReaderName() Support 16 simultaneous readers
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAD, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
readerfactory.c:195:RFAddReader() Driver is thread safe
readerfactory.c:933:RFInitializeReader() Attempting startup of Smart Enterprise Guardian [Mass Storage] (106A1D11163057150508) 01 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:663:RFLoadReader() Reusing already loaded driver for /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:802:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:82:IFDHCreateChannelByName() lun: 10000, device: usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if0
ccid_usb.c:162:OpenUSBByName() Reader index: 1, Device: usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if0
ccid_usb.c:279:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@...)
ccid_usb.c:289:OpenUSBByName() ProductString: Generic CCID driver
ccid_usb.c:295:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
ccid_usb.c:377:OpenUSBByName() Checking device: 001/007
ccid_usb.c:431:OpenUSBByName() Trying to open USB bus/device: 001/007
ccid_usb.c:476:OpenUSBByName() Wrong interface for USB device 001/007. Checking next one.
tokenparser.l:175:LTPBundleFindValueWithKey() Value/Key not defined for: ifdVendorID in /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
ifdhandler.c:104:IFDHCreateChannelByName() failed
readerfactory.c:959:RFInitializeReader() Open Port 200001 Failed (usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if0)
readerfactory.c:233:RFAddReader() Smart Enterprise Guardian [Mass Storage] (106A1D11163057150508) init failed.
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x413C, PID: 0xA005
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x0B97, PID: 0x7761
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x0B97, PID: 0x7762
hotplug_libhal.c:366:HPAddDevice() Adding USB device: usb_device_b97_7762_noserial_if0
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAF, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
readerfactory.c:515:RFSetReaderName() Support 16 simultaneous readers
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAD, usb:08e6/8000:libhal:/org/freedesktop/Hal/devices/usb_device_8e6_8000_106A1D11163057150508_if1 (lun: 0)
readerfactory.c:195:RFAddReader() Driver is thread safe
readerfactory.c:933:RFInitializeReader() Attempting startup of O2 Micro Oz776 01 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:663:RFLoadReader() Reusing already loaded driver for /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
readerfactory.c:802:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:82:IFDHCreateChannelByName() lun: 10000, device: usb:0b97/7762:libhal:/org/freedesktop/Hal/devices/usb_device_b97_7762_noserial_if0
ccid_usb.c:162:OpenUSBByName() Reader index: 1, Device: usb:0b97/7762:libhal:/org/freedesktop/Hal/devices/usb_device_b97_7762_noserial_if0
ccid_usb.c:279:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@...)
ccid_usb.c:289:OpenUSBByName() ProductString: Generic CCID driver
ccid_usb.c:295:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
ccid_usb.c:377:OpenUSBByName() Checking device: 001/005
ccid_usb.c:431:OpenUSBByName() Trying to open USB bus/device: 001/005
ccid_usb.c:495:OpenUSBByName() Found Vendor/Product: 0B97/7762 (O2 Micro Oz776)
ccid_usb.c:497:OpenUSBByName() Using USB bus/device: 001/005
ccid_usb.c:943:ControlUSB() request: 0x03
receive: 80 25 00 00
ccid_usb.c:923:get_data_rates() declared: 9600 bps
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFB0, usb:0b97/7762:libhal:/org/freedesktop/Hal/devices/usb_device_b97_7762_noserial_if0 (lun: 10000)
readerfactory.c:249:RFAddReader() Using the pcscd polling thread
ifdhandler.c:365:IFDHGetCapabilities() tag: 0xFAE, usb:0b97/7762:libhal:/org/freedesktop/Hal/devices/usb_device_b97_7762_noserial_if0 (lun: 10000)
ifdhandler.c:453:IFDHGetCapabilities() Reader supports 1 slot(s)
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x0483, PID: 0x2016
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0002
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001
hotplug_libhal.c:318:get_driver() Looking a driver for VID: 0x1D6B, PID: 0x0001
winscard_msg_srv.c:204:SHMProcessEventsServer() Common channel packet arrival
winscard_msg_srv.c:216:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 7
pcscdaemon.c:140:SVCServiceRunLoop() A new context thread creation is requested: 7
winscard_svc.c:174:ContextThread() Thread is started: 7
winscard_svc.c:190:ContextThread() Received command: CMD_VERSION from client 7
winscard_svc.c:207:ContextThread() Client is protocol version 4:0
winscard_svc.c:190:ContextThread() Received command: ESTABLISH_CONTEXT from client 7
winscard.c:218:SCardEstablishContext() Establishing Context: 0x103B49D
winscard_svc.c:190:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
winscard_svc.c:190:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
winscard_svc.c:190:ContextThread() Received command: CMD_GET_READERS_STATE from client 7
winscard_svc.c:190:ContextThread() Received command: CMD_GET_READERS_STATE from client 7


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

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Douglas E. Engert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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.rousseau@...>:
>> 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  <DEEngert@...>
  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
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Sébastien Lorquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <deengert@...> 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.rousseau@...>:
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  <DEEngert@...>
 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
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle



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

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Ludovic Rousseau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/4 Douglas E. Engert <deengert@...>:

> 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.

Thanks. Fixed in revision 4530.
AF_LOCAL is the Posix name for AF_UNIX.

This is exactly the kind of problem I was expecting. Thanks for your help.

Have you also tried to use the new pcsc-lite or just to compile it?

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Ludovic Rousseau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/5 Sébastien Lorquet <squalyl@...>:

> 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?

You may be right. My French manpage for socket(2) refers to AF_* but
the English manpage for socket(2) refers to PF_*
I guess the English manpage is more up to date.

I guess Solaris does not define PF_LOCAL either and PF_UNIX should be
used instead.

I fixed that in revision 4531.
Thanks

--
 Dr. Ludovic Rousseau

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

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Sébastien Lorquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah... en effet. Funny :-)

According to this:
http://bytes.com/topic/c/answers/726093-af_inet-pf_inet-difference-socket-programming

we should have look a *BSD* man pages.

We just have chance that no protocol defines 2 address types :)

Sebastien

On Thu, Nov 5, 2009 at 9:07 AM, Ludovic Rousseau <ludovic.rousseau@...> wrote:
2009/11/5 Sébastien Lorquet <squalyl@...>:
> 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?

You may be right. My French manpage for socket(2) refers to AF_* but
the English manpage for socket(2) refers to PF_*
I guess the English manpage is more up to date.

I guess Solaris does not define PF_LOCAL either and PF_UNIX should be
used instead.

I fixed that in revision 4531.
Thanks

--
 Dr. Ludovic Rousseau

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


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

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Douglas E. Engert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Ludovic Rousseau wrote:

> 2009/11/4 Douglas E. Engert <deengert@...>:
>> 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.
>
> Thanks. Fixed in revision 4530.
> AF_LOCAL is the Posix name for AF_UNIX.
>
> This is exactly the kind of problem I was expecting. Thanks for your help.
>
> Have you also tried to use the new pcsc-lite or just to compile it?

I ran it using GemPC Twin reader with OpenSC svn-3783 from pam_krb5 with
MIT krb5-1.7 using PKINIT to AD with a PIV smartcard.

It worked!


>
> Bye
>

--

  Douglas E. Engert  <DEEngert@...>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Douglas E. Engert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Ludovic Rousseau wrote:

> 2009/11/5 Sébastien Lorquet <squalyl@...>:
>> 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?
>
> You may be right. My French manpage for socket(2) refers to AF_* but
> the English manpage for socket(2) refers to PF_*
> I guess the English manpage is more up to date.
>
> I guess Solaris does not define PF_LOCAL either and PF_UNIX should be
> used instead.

Solaris 10 sys/socket.g has:
#define PF_UNIX     AF_UNIX
and does not have  PF_LOCAL

>
> I fixed that in revision 4531.
> Thanks
>

--

  Douglas E. Engert  <DEEngert@...>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Ludovic Rousseau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/5 Douglas E. Engert <deengert@...>:
> I ran it using GemPC Twin reader with OpenSC svn-3783 from pam_krb5 with
> MIT krb5-1.7 using PKINIT to AD with a PIV smartcard.
>
> It worked!

Thanks for the report.
This new pcsc-lite works on at least two different computers. Great! :-)

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Muscle@...
http://lists.drizzle.com/mailman/listinfo/muscle

Re: Re: new (beta) version of pcsc-lite 1.5.6-svn-4527

by Sébastien Lorquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay my turn. I'm on CentOS 5.3 i686

Using the versions svn-4527, with libusb (don't know how to use HAL efficiently)

Compile / install pcsclite: perfect
Compile / install ccid: perfect

Plug one Teo By Xiring: detected
Plug one other: detected
Plug 4 SDI SCR-3310: detected
Plug a hub with 7 other teo by xiring: all recognized at once
Plug a gemalto transparent usb stick (gemplus gemPC key) with a sim sized javacard: detected
I'm OK for readers.

Stress test:

- 9 cards
- Our daemon with one thread per card
- One client with 5000 threads connected to our own daemon, running transactions with our daemon, balancing load on the 9 cards:

Worked like a charm.

So for me this beta is ok.

Regards,
Sebastien

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