Hi all.

Being on vacation I could finally resume my experiments.

But I noticed that lastly every command is sluggish.
Running "pcscd -f -d" I could pin down the slow op to the SCardConnect:

00000028 Card ATR: 3B F5 18 00 00 81 31 FE 45 4D 79 45 49 44 9A
00000007 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000006 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00000036 ifdhandler.c:695:IFDHSetProtocolParameters() protocol T=1,
usb:08e6/3437:libusb-1.0:7:2 (lun: 0)
00000009 ifdhandler.c:1863:extra_egt() Extra EGT patch applied
99999999 winscard.c:406:SCardConnect() Active Protocol: T=1
00000051 winscard.c:426:SCardConnect() hCard Identity: 12663
00000010 winscard_svc.c:443:ContextThread() CONNECT rv=0x0 for client 4
00000152 winscard_svc.c:314:ContextThread() Received command: CONTROL
from client 4

It's obviously the line with all those 9.
But that's not fixed. On another run it hung on
60079903 winscard_svc.c:598:ContextThread() TRANSMIT rv=0x0 for client 4
[maybe that could related to having opensc-pkcs11.so loaded both in FF
and TB, but slowness remains].

$ time pkcs15-tool --list-pins
Using reader with a card: Gemalto GemPC Twin 00 00
PIN [Security Officer PIN]
        Object Flags   : [0x3], private, modifiable
        ID             : ff
        Flags          : [0xB0], initialized, needs-padding, soPin
        Length         : min_len:4, max_len:8, stored_len:8
        Pad char       : 0xFF
        Reference      : 3
        Type           : ascii-numeric

PIN [Card Auth]
        Object Flags   : [0x3], private, modifiable
        ID             : 01
        Flags          : [0x30], initialized, needs-padding
        Length         : min_len:4, max_len:8, stored_len:8
        Pad char       : 0xFF
        Reference      : 1
        Type           : ascii-numeric

PIN [User Auth]
        Object Flags   : [0x3], private, modifiable
        ID             : 02
        Flags          : [0x30], initialized, needs-padding
        Length         : min_len:4, max_len:8, stored_len:8
        Pad char       : 0xFF
        Reference      : 2
        Type           : ascii-numeric


real    4m0.982s
user    0m0.000s
sys     0m0.004s

And attached is the full output of pcscd for that run:

I'm now using opensc-0.12.1 and lib64pcsclite-1.6.6 (packages from
Mandriva Cooker).
Same card (Aventra MyEID) and same reader (Gemalto GemPC Twin) worked OK
some months ago (with 0.12.0).

Is there something I should check or some more debugging I should enable?

BYtE,
 Diego.

Attachment: pcscd-slow.log.bz2
Description: application/bzip

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

Reply via email to