You can subscribe to this list here.
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(26) |
Feb
(64) |
Mar
(78) |
Apr
(36) |
May
(51) |
Jun
(40) |
Jul
(43) |
Aug
(102) |
Sep
(50) |
Oct
(71) |
Nov
(42) |
Dec
(29) |
2014 |
Jan
(49) |
Feb
(52) |
Mar
(56) |
Apr
(30) |
May
(31) |
Jun
(52) |
Jul
(76) |
Aug
(19) |
Sep
(82) |
Oct
(95) |
Nov
(58) |
Dec
(76) |
2015 |
Jan
(135) |
Feb
(43) |
Mar
(47) |
Apr
(72) |
May
(59) |
Jun
(20) |
Jul
(17) |
Aug
(14) |
Sep
(34) |
Oct
(62) |
Nov
(48) |
Dec
(23) |
2016 |
Jan
(18) |
Feb
(55) |
Mar
(24) |
Apr
(20) |
May
(33) |
Jun
(29) |
Jul
(18) |
Aug
(15) |
Sep
(8) |
Oct
(21) |
Nov
(5) |
Dec
(23) |
2017 |
Jan
(3) |
Feb
|
Mar
(17) |
Apr
(4) |
May
|
Jun
(5) |
Jul
(1) |
Aug
(20) |
Sep
(17) |
Oct
(21) |
Nov
|
Dec
(3) |
2018 |
Jan
(62) |
Feb
(4) |
Mar
(4) |
Apr
(20) |
May
(16) |
Jun
|
Jul
(1) |
Aug
(9) |
Sep
(3) |
Oct
(11) |
Nov
|
Dec
(9) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(5) |
Nov
|
Dec
(5) |
2020 |
Jan
(11) |
Feb
(14) |
Mar
(7) |
Apr
|
May
|
Jun
(3) |
Jul
(3) |
Aug
(6) |
Sep
(2) |
Oct
(15) |
Nov
(11) |
Dec
(7) |
2021 |
Jan
(14) |
Feb
(21) |
Mar
(3) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(12) |
Dec
|
2023 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(8) |
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(1) |
2024 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nguyễn H. Q. <qua...@mb...> - 2013-03-25 10:34:34
|
Hello, Here is the struct definition for DATA object: struct sc_pkcs15_data_info { /* FIXME: there is no pkcs15 ID in DataType */ struct sc_pkcs15_id id; /* Identify the application: * either or both may be set */ char app_label[SC_PKCS15_MAX_LABEL_SIZE]; struct sc_object_id app_oid; struct sc_path path; struct sc_pkcs15_der data; }; typedef struct sc_pkcs15_data_info sc_pkcs15_data_info_t; There is no member for "auth_id" or slot ID. On Sun 10 Mar 2013 07:13:32 PM ICT, Viktor Tarasov wrote: > Hello, > > Private DATA object, by definition, is protected by some AuthentificationObject (PIN). > The object's 'auth_id' has to reference this authObject. > > So, in your emulation layer, when creating PKCS#15 DATA object, > you have to set it's 'auth_id' to reference PIN2, > in the same manner as you do it for private key PKCS#15 objects: > https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/pkcs15-openpgp.c#L283 > > >> I want to move it to slot 2, to be able to use PIN2 to read it. How can >> I do? >> >> (Other objects, KEY and CERT, are listed in slot 2: >> http://paste.ubuntu.com/5595074/) > > Kind regards, > Viktor. > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel -- Regards, Quân Y!IM: ng_hquan_vn GTalk: ng.hong.quan |
From: Anthony F. <ant...@gm...> - 2013-03-23 10:53:24
|
Greetings. I'm working on adding crypto token to an embedded target. When I went to build pcscd, the makefile built pcsc-wirecheck-gen with the cross compiler, so the binary could not be executed on the native host. I worked around it with this patch (relative to r6574), but I'm sure there's a nicer way to do it -- I just don't grok automake and friends well enough to do it right... Best regards, Anthony Foiani -- diff --git a/PCSC/src/Makefile.am b/PCSC/src/Makefile.am index 36c85f0..03fa5e9 100644 --- a/PCSC/src/Makefile.am +++ b/PCSC/src/Makefile.am @@ -6,7 +6,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/PCSC -I$(top_builddir)/src/PCSC \ lib_LTLIBRARIES = libpcsclite.la sbin_PROGRAMS = pcscd -noinst_PROGRAMS = testpcsc pcsc-wirecheck pcsc-wirecheck-gen +noinst_PROGRAMS = testpcsc pcsc-wirecheck if ENABLE_SERIAL SERIAL_CONFIG = configfile.l @@ -104,8 +104,8 @@ update-systemd: testpcsc_SOURCES = testpcsc.c testpcsc_LDADD = libpcsclite.la -pcsc_wirecheck_gen_SOURCES = \ - pcsc-wirecheck-gen.c +pcsc-wirecheck-gen : + cc -o pcsc-wirecheck-gen pcsc-wirecheck-gen.c -isystem PCSC # pcsc_wirecheck_gen_CPPFLAGS := $(LIBPCSCLITE_CFLAGS) |
From: Florent D. <fde...@gm...> - 2013-03-22 10:14:33
|
It works perfectly without virtualization. I also tried the smart card in a previous generation of the reader (rev1 instead of rev2) and it works perfectly. The problem comes definitively from virtualization and from this new revision of the reader. I opened a case on Gemalto. I'll keep you updated. Thanks again. 2013/3/18 Martin Paljak <ma...@ma...> > AFAIR pcsc_scan doesn't do that much communication with the reader as > opensc-tool. > > As suggested by Ludovic: if virtualization fails, first try without > it. I have had reasonable success with VM-s, depending on the > situation either always using USB level virtualization or vice versa, > only using the virtual smart card reader provided by VM. > > Experiment with the two options to see if it matters for you. > > If it fails, try on bare hardware. If that works, look for problems in > virtualization, then in smart card stack. > > > Martin > > On Mon, Mar 18, 2013 at 11:01 AM, Florent Deybach <fde...@gm...> > wrote: > > Ok, thanks for the diagnostic. > > > > But how come pcsc_scan works well when the other tools fail? > > Does pcsc_scan doesn't use libusb? > > > > > > > > 2013/3/15 Ludovic Rousseau <lud...@gm...> > >> > >> 2013/3/14 Florent Deybach <fde...@gm...>: > >> > Hello, > >> > > >> > As requested, the pcscd log file. > >> > >> > >> 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to > 300000 > >> bauds > >> 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default > >> protocol found in ATR. Using T=0 > >> 00000023 PPS: Sending request: FF 10 96 79 > >> 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > >> 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > >> 00000098 PPS: Receiving confirm: FF 10 96 79 > >> 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication > >> timeout: 266240 ms > >> 00000022 commands.c:2115:SetParameters() length: 5 bytes > >> 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 > >> 00020124 <- 000000 > >> 00000063 commands.c:2135:SetParameters() Not enough data received: 0 > bytes > >> 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 > >> > >> For an unknown reason the libusb returned 0 bytes for the SetParameters > >> answer. > >> > >> It looks like a USB issue somewhere. > >> VMware Player may not work as good as expected in this case. > >> > >> Maybe you can try another virtual machine like VirtualBox. > >> But note that a virtual machine does not (in general) play well with > USB. > >> > >> Bye > >> > >> -- > >> Dr. Ludovic Rousseau > > > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Opensc-devel mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensc-devel > > > |
From: Sushma <sus...@gm...> - 2013-03-21 12:32:09
|
Hi, I have vendor provided smart card with a self signed certificate installed on it (with private/public key pair). I'm developing a mini driver in which a sequence of calls occur and I get CardReadFile() call with cmapfile and then CardGetContainerInfo(). The mini driver need to fill the CONTAINER_MAP_RECORD and CONTAINER_INFO data structures. However, I'm not sure how I can retrieve this information from the smart card. I knew that the certificate contains container name, key information and key type. Do I need to use APDU command to retrieve these information from smart card? This is a general question and not related to OpenSC, but I'm expecting some information from the experts? Regards, Sushma |
From: Douglas E. E. <dee...@an...> - 2013-03-18 15:18:40
|
On 3/18/2013 7:04 AM, Sushma wrote: > Thank you for the reply. > > > Simple curiosity, what is the motivation to develop a "minidriver based on OpenSC code"? > > I'm using the startup code of OpenSC and trying to add my card specific code in card-xxx.c and .h file. This would actually save a lot of time for me. > > > Only valid PKCS#15 on-card structure is needed, native or emulated. > > In this case, I may not be able to use the OpenSC code as my card does not support PKCS#15. There are a number of non PKCS#15 cards supported bu OpenSC. The PIV card for example, so don't let the PKCS#15 issue stop you. The other question is card management. How much (if any) of the card management do you want the minidriver to do? With the PIV cards, is the cards are issued by some out side authority. OpenSC would only be support the end user use of the card. But the piv-tool was created to allow for minimal card management for test cards. It interfaces to the card driver bypassing the PKCS#15 and PKCS#11 in some cases. opensc-tool can also do some of this and both have a -s option to allow you to issue specific ADPU commands directly to the card. > > I'm still researching other possibilities. I'll come back if I have any doubts? > > On Sun, Mar 17, 2013 at 1:24 AM, Viktor Tarasov <vik...@gm... <mailto:vik...@gm...>> wrote: > > Hello, > > Le 14/03/2013 10:33, Sushma a écrit : > > I'm developing a smart card mini driver based on OpenSC code. I have few basic questions regarding the smart card. > > OpenSC has it's own mini driver. > Simple curiosity, what is the motivation to develop a "minidriver based on OpenSC code"? > > > 1. Can I use blank card (empty content) for testing with OpenSC mini driver code? If not, what should be the initial content of smart card? > > 2. Can I use OpenSC mini driver for non-PKCS#15 smart cards? > > > > Card has to be supported by the OpenSC core. > Minidriver of OpenSC uses the internal PKCS#15 framework; the same framework is used by OpenSC PKCS#11 module. > > > > 1. If not, where can I procure sample PKCS#15 cards? > > 2. Does OpenSC mini driver support PKCS#11 smart cards? > > 3. The card I'm using at this moment is a non-standard card. Can I still use the OpenSC mini driver code where I can implement card-xxx.c/.h which contains my card specific details? > > > > You have to implement card-xxx.[c,h]. > Only valid PKCS#15 on-card structure is needed, native or emulated. > > > Any answers would help me understand better. > > > > Thanks and Regards, > > Sushma > > Kind wishes, > Viktor. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Opensc-devel mailing list > Ope...@li... <mailto:Ope...@li...> > https://lists.sourceforge.net/lists/listinfo/opensc-devel > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > > > > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel > -- Douglas E. Engert <DEE...@an...> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 |
From: Ludovic R. <lud...@gm...> - 2013-03-18 12:24:07
|
2013/3/18 Florent Deybach <fde...@gm...>: > Ok, thanks for the clarification about pcsc_scan. > > I've already tested it in a non-VM environment and it works fine. > So I was already convinced it had something to do with the USB emulation or > something like that. > > It seems that VirtualBox plays better with USB devices, I'll try it but it > still bugs me that I cannot diagnostic why it doesn't work with VMware. VMware also provides a virtual CCID device that is connected to your reader. In that case vmware uses PC/SC on the host to access the reader/card and emulates a CCID device in the guest machine. This configuration may work better. Bye -- Dr. Ludovic Rousseau |
From: Sushma <sus...@gm...> - 2013-03-18 12:04:30
|
Thank you for the reply. > Simple curiosity, what is the motivation to develop a "minidriver based on OpenSC code"? I'm using the startup code of OpenSC and trying to add my card specific code in card-xxx.c and .h file. This would actually save a lot of time for me. > Only valid PKCS#15 on-card structure is needed, native or emulated. In this case, I may not be able to use the OpenSC code as my card does not support PKCS#15. I'm still researching other possibilities. I'll come back if I have any doubts? On Sun, Mar 17, 2013 at 1:24 AM, Viktor Tarasov <vik...@gm...>wrote: > Hello, > > Le 14/03/2013 10:33, Sushma a écrit : > > I'm developing a smart card mini driver based on OpenSC code. I have few > basic questions regarding the smart card. > > OpenSC has it's own mini driver. > Simple curiosity, what is the motivation to develop a "minidriver based on > OpenSC code"? > > > 1. Can I use blank card (empty content) for testing with OpenSC mini > driver code? If not, what should be the initial content of smart card? > > 2. Can I use OpenSC mini driver for non-PKCS#15 smart cards? > > > > Card has to be supported by the OpenSC core. > Minidriver of OpenSC uses the internal PKCS#15 framework; the same > framework is used by OpenSC PKCS#11 module. > > > > 1. If not, where can I procure sample PKCS#15 cards? > > 2. Does OpenSC mini driver support PKCS#11 smart cards? > > 3. The card I'm using at this moment is a non-standard card. Can I > still use the OpenSC mini driver code where I can implement card-xxx.c/.h > which contains my card specific details? > > > > You have to implement card-xxx.[c,h]. > Only valid PKCS#15 on-card structure is needed, native or emulated. > > > Any answers would help me understand better. > > > > Thanks and Regards, > > Sushma > > Kind wishes, > Viktor. > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel > |
From: Florent D. <fde...@gm...> - 2013-03-18 10:34:06
|
Ok, thanks for the clarification about pcsc_scan. I've already tested it in a non-VM environment and it works fine. So I was already convinced it had something to do with the USB emulation or something like that. It seems that VirtualBox plays better with USB devices, I'll try it but it still bugs me that I cannot diagnostic why it doesn't work with VMware. Cheers 2013/3/18 Martin Paljak <ma...@ma...> > AFAIR pcsc_scan doesn't do that much communication with the reader as > opensc-tool. > > As suggested by Ludovic: if virtualization fails, first try without > it. I have had reasonable success with VM-s, depending on the > situation either always using USB level virtualization or vice versa, > only using the virtual smart card reader provided by VM. > > Experiment with the two options to see if it matters for you. > > If it fails, try on bare hardware. If that works, look for problems in > virtualization, then in smart card stack. > > > Martin > > On Mon, Mar 18, 2013 at 11:01 AM, Florent Deybach <fde...@gm...> > wrote: > > Ok, thanks for the diagnostic. > > > > But how come pcsc_scan works well when the other tools fail? > > Does pcsc_scan doesn't use libusb? > > > > > > > > 2013/3/15 Ludovic Rousseau <lud...@gm...> > >> > >> 2013/3/14 Florent Deybach <fde...@gm...>: > >> > Hello, > >> > > >> > As requested, the pcscd log file. > >> > >> > >> 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to > 300000 > >> bauds > >> 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default > >> protocol found in ATR. Using T=0 > >> 00000023 PPS: Sending request: FF 10 96 79 > >> 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > >> 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > >> 00000098 PPS: Receiving confirm: FF 10 96 79 > >> 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication > >> timeout: 266240 ms > >> 00000022 commands.c:2115:SetParameters() length: 5 bytes > >> 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 > >> 00020124 <- 000000 > >> 00000063 commands.c:2135:SetParameters() Not enough data received: 0 > bytes > >> 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 > >> > >> For an unknown reason the libusb returned 0 bytes for the SetParameters > >> answer. > >> > >> It looks like a USB issue somewhere. > >> VMware Player may not work as good as expected in this case. > >> > >> Maybe you can try another virtual machine like VirtualBox. > >> But note that a virtual machine does not (in general) play well with > USB. > >> > >> Bye > >> > >> -- > >> Dr. Ludovic Rousseau > > > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Opensc-devel mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opensc-devel > > > |
From: Martin P. <ma...@ma...> - 2013-03-18 09:38:42
|
AFAIR pcsc_scan doesn't do that much communication with the reader as opensc-tool. As suggested by Ludovic: if virtualization fails, first try without it. I have had reasonable success with VM-s, depending on the situation either always using USB level virtualization or vice versa, only using the virtual smart card reader provided by VM. Experiment with the two options to see if it matters for you. If it fails, try on bare hardware. If that works, look for problems in virtualization, then in smart card stack. Martin On Mon, Mar 18, 2013 at 11:01 AM, Florent Deybach <fde...@gm...> wrote: > Ok, thanks for the diagnostic. > > But how come pcsc_scan works well when the other tools fail? > Does pcsc_scan doesn't use libusb? > > > > 2013/3/15 Ludovic Rousseau <lud...@gm...> >> >> 2013/3/14 Florent Deybach <fde...@gm...>: >> > Hello, >> > >> > As requested, the pcscd log file. >> >> >> 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to 300000 >> bauds >> 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default >> protocol found in ATR. Using T=0 >> 00000023 PPS: Sending request: FF 10 96 79 >> 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 >> 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 >> 00000098 PPS: Receiving confirm: FF 10 96 79 >> 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication >> timeout: 266240 ms >> 00000022 commands.c:2115:SetParameters() length: 5 bytes >> 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 >> 00020124 <- 000000 >> 00000063 commands.c:2135:SetParameters() Not enough data received: 0 bytes >> 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 >> >> For an unknown reason the libusb returned 0 bytes for the SetParameters >> answer. >> >> It looks like a USB issue somewhere. >> VMware Player may not work as good as expected in this case. >> >> Maybe you can try another virtual machine like VirtualBox. >> But note that a virtual machine does not (in general) play well with USB. >> >> Bye >> >> -- >> Dr. Ludovic Rousseau > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel > |
From: Florent D. <fde...@gm...> - 2013-03-18 09:01:48
|
Ok, thanks for the diagnostic. But how come pcsc_scan works well when the other tools fail? Does pcsc_scan doesn't use libusb? 2013/3/15 Ludovic Rousseau <lud...@gm...> > 2013/3/14 Florent Deybach <fde...@gm...>: > > Hello, > > > > As requested, the pcscd log file. > > > 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to 300000 > bauds > 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default > protocol found in ATR. Using T=0 > 00000023 PPS: Sending request: FF 10 96 79 > 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 > 00000098 PPS: Receiving confirm: FF 10 96 79 > 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication > timeout: 266240 ms > 00000022 commands.c:2115:SetParameters() length: 5 bytes > 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 > 00020124 <- 000000 > 00000063 commands.c:2135:SetParameters() Not enough data received: 0 bytes > 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 > > For an unknown reason the libusb returned 0 bytes for the SetParameters > answer. > > It looks like a USB issue somewhere. > VMware Player may not work as good as expected in this case. > > Maybe you can try another virtual machine like VirtualBox. > But note that a virtual machine does not (in general) play well with USB. > > Bye > > -- > Dr. Ludovic Rousseau > |
From: Viktor T. <vik...@gm...> - 2013-03-16 19:54:48
|
Hello, Le 14/03/2013 10:33, Sushma a écrit : > I'm developing a smart card mini driver based on OpenSC code. I have few basic questions regarding the smart card. OpenSC has it's own mini driver. Simple curiosity, what is the motivation to develop a "minidriver based on OpenSC code"? > 1. Can I use blank card (empty content) for testing with OpenSC mini driver code? If not, what should be the initial content of smart card? > 2. Can I use OpenSC mini driver for non-PKCS#15 smart cards? > Card has to be supported by the OpenSC core. Minidriver of OpenSC uses the internal PKCS#15 framework; the same framework is used by OpenSC PKCS#11 module. > 1. If not, where can I procure sample PKCS#15 cards? > 2. Does OpenSC mini driver support PKCS#11 smart cards? > 3. The card I'm using at this moment is a non-standard card. Can I still use the OpenSC mini driver code where I can implement card-xxx.c/.h which contains my card specific details? > You have to implement card-xxx.[c,h]. Only valid PKCS#15 on-card structure is needed, native or emulated. > Any answers would help me understand better. > > Thanks and Regards, > Sushma Kind wishes, Viktor. |
From: Fredrik P. <pe...@no...> - 2013-03-16 18:09:02
|
Hi Greg, On Mar 16, 2013, at 18:18 , Greg Troxel <gd...@ir...> wrote: > I'm trying to update pkgsrc to 0.13.0, and got the following error: > > checking for dlopen in -ldl... no > configure: error: libdl required > *** Error code 1 > > Stop. > make: stopped in /u0/n0/gdt/NetBSD-current/pkgsrc/security/opensc > *** Error code 1 > > Stop. > make: stopped in /usr/pkgsrc/security/opensc > > I have never seen a "libdl" on *BSD. There is libtool's variant, which > was already visible to the build (same as in the 0.12.2 package); There is a solution for that in NetBSD/pkgsrc (see "./mk/dlopen.buildlink3.mk") The other problem we have then compiling on NetBSD is that OpenSC wouldn't compile without threads. (I didn't manage to find a good solution for that, at least…) Re, /P |
From: Greg T. <gd...@ir...> - 2013-03-16 17:44:51
|
Fredrik Pettai <pe...@no...> writes: > On Mar 16, 2013, at 18:18 , Greg Troxel <gd...@ir...> wrote: >> I have never seen a "libdl" on *BSD. There is libtool's variant, which >> was already visible to the build (same as in the 0.12.2 package); > > There is a solution for that in NetBSD/pkgsrc (see "./mk/dlopen.buildlink3.mk Thanks. That didn't work (with the 0.13.0 release), because I think it's incorrectly hard-coded to look in libdl. Luckily Martin fixed it in git, but that's not in a release yet. > The other problem we have then compiling on NetBSD is that OpenSC > wouldn't compile without threads. > (I didn't manage to find a good solution for that, at least…) Are threads a new requirement in 0.13 vs 0.12? (For others: NetBSD doens't allow dlopening threaded libraries into non-threaded programs. So things that are in pam modules have to be non-threaded. This restriction may be eased; it's hard to avoid the restriction and not make all programs pay the mutex/etc. costs of being threaded.) |
From: Martin P. <ma...@ma...> - 2013-03-16 17:29:17
|
Hello, On Sat, Mar 16, 2013 at 7:18 PM, Greg Troxel <gd...@ir...> wrote: > Has 0.13.0 been confirmed to build on other than Linux? Hmm, weird timing, given that I just did it yesterday on OpenBSD. Use git HEAD and/or have a look at [1] Martin [1] https://github.com/OpenSC/OpenSC/commit/11ff81367af9bc9dce2cbcb550cc463552a3b69e |
From: Greg T. <gd...@ir...> - 2013-03-16 17:18:29
|
I'm trying to update pkgsrc to 0.13.0, and got the following error: checking for dlopen in -ldl... no configure: error: libdl required *** Error code 1 Stop. make: stopped in /u0/n0/gdt/NetBSD-current/pkgsrc/security/opensc *** Error code 1 Stop. make: stopped in /usr/pkgsrc/security/opensc I have never seen a "libdl" on *BSD. There is libtool's variant, which was already visible to the build (same as in the 0.12.2 package); -rw-r--r-- 1 root wheel 40204 Feb 20 18:41 /usr/pkg/lib/libltdl.a -rwxr-xr-x 1 root wheel 964 Feb 20 18:41 /usr/pkg/lib/libltdl.la lrwxr-xr-x 1 root wheel 16 Feb 20 18:41 /usr/pkg/lib/libltdl.so -> libltdl.so.7.2.1 lrwxr-xr-x 1 root wheel 16 Feb 20 18:41 /usr/pkg/lib/libltdl.so.7 -> libltdl.so.7.2.1 -rwxr-xr-x 1 root wheel 36129 Feb 20 18:41 /usr/pkg/lib/libltdl.so.7.2.1 and dlopen is provided in dynamically linked programs, but not in a library named libdl. Has 0.13.0 been confirmed to build on other than Linux? |
From: Ludovic R. <lud...@gm...> - 2013-03-16 14:46:40
|
2013/3/15 Greg Troxel <gd...@ir...>: > > Greg Troxel <gd...@ir...> writes: > >> At >> >> https://www.opensc-project.org/opensc/wiki/pam_pkcs11 >> >> the download links do not work. >> ------------------------------------------------------------------------------ >> Everyone hates ads in mailinglists. To avoid them, choose >> a different hosting provider. >> _______________________________________________ >> Opensc-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensc-devel > > > So I found the new project homepage: > > https://github.com/OpenSC/pam_pkcs11/wiki > > but the download links are the same. I updated the download links. Thanks for the bug report -- Dr. Ludovic Rousseau |
From: Martin P. <ma...@ma...> - 2013-03-15 23:12:06
|
On Fri, Mar 15, 2013 at 4:48 PM, Andreas Schwier (ML) <and...@ca...> wrote: > > What about issue tracking ? Github or Trac ? Eventually it doesn't matter. They (collected things) either get reviewed and processed (semi-regularly) or they dust and pile up. A huge pile can be helpful for "plotting and organizing" but at the same time it becomes a distraction. Martin |
From: Greg T. <gd...@ir...> - 2013-03-15 17:53:48
|
Greg Troxel <gd...@ir...> writes: > At > > https://www.opensc-project.org/opensc/wiki/pam_pkcs11 > > the download links do not work. > ------------------------------------------------------------------------------ > Everyone hates ads in mailinglists. To avoid them, choose > a different hosting provider. > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel So I found the new project homepage: https://github.com/OpenSC/pam_pkcs11/wiki but the download links are the same. |
From: Greg T. <gd...@ir...> - 2013-03-15 17:24:03
|
At https://www.opensc-project.org/opensc/wiki/pam_pkcs11 the download links do not work. |
From: Andreas S. (ML) <and...@ca...> - 2013-03-15 14:48:24
|
I basically don't care which wiki we maintain. My point is that I want to maintain just one. Are we in agreement to drop the wiki at Github and continue with the one at opensc-project.org ? What about issue tracking ? Github or Trac ? Andreas Am 15.03.2013 14:04, schrieb Martin Paljak: > Hello, > > On Sun, Mar 10, 2013 at 2:33 PM, Viktor Tarasov > <vik...@gm...> wrote: >> As for me, Trac is more friendly and pleasant to use. > Indeed. It also makes sense to have a single entry point. Eventually > having a logically connected wiki requires gardening. > > There's also the problem of jurisdiction. While OpenSC doesn't touch > restricted stuff, being subject to DMCA and similar creatures (or > "hacker tools" in Germany) of US based operations (sf.net, github.com) > is a thing to consider with a healthy amount of paranoia. Git makes it > simple for source code but not that simple for other other things that > are bundled with github. > > Martin > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel -- --------- CardContact Software & System Consulting |.##> <##.| Andreas Schwier |# #| Schülerweg 38 |# #| 32429 Minden, Germany |'##> <##'| Phone +49 571 56149 --------- http://www.cardcontact.de http://www.tscons.de http://www.openscdp.org -- --------- CardContact Software & System Consulting |.##> <##.| Andreas Schwier |# #| Schülerweg 38 |# #| 32429 Minden, Germany |'##> <##'| Phone +49 571 56149 --------- http://www.cardcontact.de http://www.tscons.de http://www.openscdp.org |
From: Ludovic R. <lud...@gm...> - 2013-03-15 13:07:58
|
2013/3/14 Florent Deybach <fde...@gm...>: > Hello, > > As requested, the pcscd log file. 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to 300000 bauds 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default protocol found in ATR. Using T=0 00000023 PPS: Sending request: FF 10 96 79 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 00000098 PPS: Receiving confirm: FF 10 96 79 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication timeout: 266240 ms 00000022 commands.c:2115:SetParameters() length: 5 bytes 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 00020124 <- 000000 00000063 commands.c:2135:SetParameters() Not enough data received: 0 bytes 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 For an unknown reason the libusb returned 0 bytes for the SetParameters answer. It looks like a USB issue somewhere. VMware Player may not work as good as expected in this case. Maybe you can try another virtual machine like VirtualBox. But note that a virtual machine does not (in general) play well with USB. Bye -- Dr. Ludovic Rousseau |
From: Martin P. <ma...@ma...> - 2013-03-15 13:05:18
|
Hello, On Sun, Mar 10, 2013 at 2:33 PM, Viktor Tarasov <vik...@gm...> wrote: > As for me, Trac is more friendly and pleasant to use. Indeed. It also makes sense to have a single entry point. Eventually having a logically connected wiki requires gardening. There's also the problem of jurisdiction. While OpenSC doesn't touch restricted stuff, being subject to DMCA and similar creatures (or "hacker tools" in Germany) of US based operations (sf.net, github.com) is a thing to consider with a healthy amount of paranoia. Git makes it simple for source code but not that simple for other other things that are bundled with github. Martin |
From: Martin P. <ma...@ma...> - 2013-03-15 11:59:08
|
On Wed, Mar 6, 2013 at 9:26 AM, Andreas Schwier (ML) <and...@ca...> wrote: > leaving a good bunch of infrequent follower behind. Yes, not very nice. But then again, the number of followers only matters in twitter, cults and political parties (and the last two share a lot in common, sometimes). m. |
From: Florent D. <fde...@gm...> - 2013-03-14 13:26:43
|
00000000 debuglog.c:269:DebugLogSetLevel() debug level=debug 00000036 debuglog.c:298:DebugLogSetCategory() Debug options: APDU 00000154 configfile.l:245:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d 00000070 configfile.l:257:DBGetReaderListDir() Skipping non regular file: . 00000006 configfile.l:257:DBGetReaderListDir() Skipping non regular file: .. 00000005 configfile.l:298:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin 00000115 pcscdaemon.c:516:main() pcsc-lite 1.8.5 daemon ready. 00001988 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/001/001 00000132 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/001/001 00000152 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0003, path: /dev/bus/usb/001/002 00000126 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0003, path: /dev/bus/usb/001/002 00000124 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/001/001 00000148 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/001/003 00000146 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x3438, path: /dev/bus/usb/001/008 00000034 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x3438, path: /dev/bus/usb/001/008 00000005 hotplug_libudev.c:312:HPAddDevice() Adding USB device: Gemalto USB Shell Token V2 00000051 readerfactory.c:978:RFInitializeReader() Attempting startup of Gemalto USB Shell Token V2 (309EF81F) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents 00000199 readerfactory.c:868:RFBindFunctions() Loading IFD Handler 3.0 00000032 ifdhandler.c:1832:init_driver() Driver version: 1.4.7 00000676 ifdhandler.c:1849:init_driver() LogLevel: 0x0003 00000008 ifdhandler.c:1860:init_driver() DriverOptions: 0x0000 00000109 ifdhandler.c:1873:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F 00000008 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 00000012 ccid_usb.c:180:OpenUSBByName() Reader index: 0, Device: usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 00000020 ccid_usb.c:212:OpenUSBByName() interface_number: 0 00000004 ccid_usb.c:228:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist 00000468 ccid_usb.c:246:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (lud...@fr...) 00000005 ccid_usb.c:247:OpenUSBByName() ifdProductString: Generic CCID driver 00000006 ccid_usb.c:248:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later 00002653 ccid_usb.c:375:OpenUSBByName() Checking device: 1/8 00000021 ccid_usb.c:430:OpenUSBByName() Trying to open USB bus/device: 1/8 00175050 ccid_usb.c:521:OpenUSBByName() Found Vendor/Product: 08E6/3438 (Gemalto USB Shell Token V2) 00000067 ccid_usb.c:523:OpenUSBByName() Using USB bus/device: 1/8 00000022 ccid_usb.c:1041:ControlUSB() request: 0x03 00030534 receive: 67 32 00 00 CE 64 00 00 9D C9 00 00 3A 93 01 00 74 26 03 00 E7 4C 06 00 CE 99 0C 00 D7 5C 02 00 11 F0 03 00 34 43 00 00 69 86 00 00 D1 0C 01 00 A2 19 02 00 45 33 04 00 8A 66 08 00 0B A0 02 00 73 30 00 00 E6 60 00 00 CC C1 00 00 99 83 01 00 32 07 03 00 63 0E 06 00 B3 22 01 00 7F E4 01 00 06 50 01 00 36 97 00 00 04 FC 00 00 53 28 00 00 A5 50 00 00 4A A1 00 00 95 42 01 00 29 85 02 00 F8 78 00 00 3E 49 00 00 7C 92 00 00 F8 24 01 00 F0 49 02 00 E0 93 04 00 C0 27 09 00 74 B7 01 00 6C DC 02 00 D4 30 00 00 A8 61 00 00 50 C3 00 00 A0 86 01 00 40 0D 03 00 80 1A 06 00 48 E8 01 00 BA DB 00 00 36 6E 01 00 24 F4 00 00 DD 6D 00 00 1B B7 00 00 00000085 ccid_usb.c:1021:get_data_rates() declared: 12903 bps 00000020 ccid_usb.c:1021:get_data_rates() declared: 25806 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 51613 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 103226 bps 00000044 ccid_usb.c:1021:get_data_rates() declared: 206452 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 412903 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 825806 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 154839 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 258065 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 17204 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 34409 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 68817 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 137634 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 275269 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 550538 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 172043 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 12403 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 24806 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 49612 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 99225 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 198450 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 396899 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 74419 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 124031 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 86022 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 38710 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 64516 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 10323 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 20645 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 41290 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 82581 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 165161 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 30968 bps 00000016 ccid_usb.c:1021:get_data_rates() declared: 18750 bps 00000025 ccid_usb.c:1021:get_data_rates() declared: 37500 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 75000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 150000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 300000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 600000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 112500 bps 00000017 ccid_usb.c:1021:get_data_rates() declared: 187500 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 12500 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 25000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 50000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 100000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 200000 bps 00000018 ccid_usb.c:1021:get_data_rates() declared: 400000 bps 00001769 ccid_usb.c:1021:get_data_rates() declared: 125000 bps 00000041 ccid_usb.c:1021:get_data_rates() declared: 56250 bps 00000026 ccid_usb.c:1021:get_data_rates() declared: 93750 bps 00000024 ccid_usb.c:1021:get_data_rates() declared: 62500 bps 00000024 ccid_usb.c:1021:get_data_rates() declared: 28125 bps 00000024 ccid_usb.c:1021:get_data_rates() declared: 46875 bps 00122113 ccid_usb.c:1090:InterruptRead() before (0) 00125238 ccid_usb.c:1132:InterruptRead() after (0) (2) 00000089 -> 000000 65 00 00 00 00 00 00 00 00 00 00030692 <- 000000 81 00 00 00 00 00 00 01 00 00 00000095 -> 000000 6B 01 00 00 00 00 01 00 00 00 6A 00031111 <- 000000 83 00 00 00 00 00 01 41 0A 00 00000077 commands.c:890:CmdEscape error on byte 10 00000022 ccid.c:205:set_gemalto_firmware_features() GET_FIRMWARE_FEATURES failed: 612, len=0 00000036 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFB3, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000021 readerfactory.c:332:RFAddReader() Using the reader polling thread 00000018 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000020 -> 000000 65 00 00 00 00 00 02 00 00 00 00031069 <- 000000 81 00 00 00 00 00 02 01 00 00 00000075 ifdhandler.c:1813:IFDHICCPresence() Card present 00000119 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFAE, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000026 ifdhandler.c:441:IFDHGetCapabilities() Reader supports 1 slot(s) 00000268 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/001/003 00000119 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00000534 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000136 -> 000000 65 00 00 00 00 00 03 00 00 00 00013986 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015582 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00001765 <- 000000 81 00 00 00 00 00 03 01 00 00 00000211 ifdhandler.c:1813:IFDHICCPresence() Card present 00000016 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000015 -> 000000 65 00 00 00 00 00 04 00 00 00 00014468 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015216 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00000233 <- 000000 81 00 00 00 00 00 04 01 00 00 00000033 ifdhandler.c:1813:IFDHICCPresence() Card present 00000046 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000017 -> 000000 62 00 00 00 00 00 05 01 00 00 00014802 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015742 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015460 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015517 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00015697 readerfactory.c:1304:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (309EF81F) 00 00 00002343 <- 000000 80 14 00 00 00 00 05 00 00 00 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 00000089 eventhandler.c:256:EHStatusHandlerThread() powerState: POWER_STATE_POWERED 00000017 Card ATR: 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 00000014 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000014 -> 000000 65 00 00 00 00 00 06 00 00 00 00028893 <- 000000 81 00 00 00 00 00 06 00 00 00 00000060 ifdhandler.c:1813:IFDHICCPresence() Card present 00000014 ifdhandler.c:282:IFDHPolling() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 5000 ms 00000012 ccid_usb.c:1090:InterruptRead() before (0) 05459699 ccid_usb.c:1132:InterruptRead() after (0) (2) 00000178 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000030 -> 000000 65 00 00 00 00 00 07 00 00 00 00359168 <- 000000 81 00 00 00 00 00 07 00 00 00 00000134 ifdhandler.c:1813:IFDHICCPresence() Card present 00000033 ifdhandler.c:1114:IFDHPowerICC() action: PowerDown, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000027 -> 000000 63 00 00 00 00 00 08 00 00 00 00030709 <- 000000 81 00 00 00 00 00 08 01 00 00 00000077 eventhandler.c:446:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED 00000023 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000021 -> 000000 65 00 00 00 00 00 09 00 00 00 00031143 <- 000000 81 00 00 00 00 00 09 01 00 00 00000090 ifdhandler.c:1813:IFDHICCPresence() Card present 00000025 ifdhandler.c:282:IFDHPolling() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 600000 ms 00000019 ccid_usb.c:1090:InterruptRead() before (0) 11990742 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet arrival 00000024 winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 9 00000005 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation is requested: 9 00000183 winscard_svc.c:297:ContextThread() Thread is started: dwClientID=9, threadContext @0x8f226d8 00002934 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION from client 9 00000428 winscard_svc.c:327:ContextThread() Client is protocol version 4:2 00000058 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 9 00000225 winscard_svc.c:315:ContextThread() Received command: ESTABLISH_CONTEXT from client 9 00000059 winscard.c:193:SCardEstablishContext() Establishing Context: 0x75999A1B 00000023 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 9 00000065 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000045 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000080 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000084 winscard_svc.c:315:ContextThread() Received command: CONNECT from client 9 00000047 winscard.c:235:SCardConnect() Attempting Connect to Gemalto USB Shell Token V2 (309EF81F) 00 00 using protocol: 3 00000027 readerfactory.c:739:RFReaderInfo() RefReader() count was: 1 00000035 ifdhandler.c:1695:IFDHICCPresence() usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000044 -> 000000 65 00 00 00 00 00 0A 00 00 00 00419367 <- 000000 81 00 00 00 00 00 0A 01 00 00 00000080 ifdhandler.c:1813:IFDHICCPresence() Card present 00000023 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000023 -> 000000 62 00 00 00 00 00 0B 01 00 00 00078889 <- 000000 80 14 00 00 00 00 0B 00 00 00 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 00000098 winscard.c:310:SCardConnect() power up complete. 00000027 Card ATR: 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 00000018 winscard.c:330:SCardConnect() powerState: POWER_STATE_INUSE 00000018 prothandler.c:87:PHSetProtocol() Attempting PTS to T=0 00000021 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=0, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000028 ifdhandler.c:1953:extra_egt() Extra EGT patch applied 00000022 ifdhandler.c:1983:find_baud_rate() Card baud rate: 300000 00000019 ifdhandler.c:1992:find_baud_rate() Reader can do: 12903 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 25806 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 51613 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 103226 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 206452 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 412903 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 825806 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 154839 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 258065 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 17204 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 34409 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 68817 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 137634 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 275269 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 550538 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 172043 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 12403 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 24806 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 49612 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 99225 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 198450 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 396899 00000018 ifdhandler.c:1992:find_baud_rate() Reader can do: 74419 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 124031 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 86022 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 38710 00000017 ifdhandler.c:1992:find_baud_rate() Reader can do: 64516 00000016 ifdhandler.c:1992:find_baud_rate() Reader can do: 10323 00001113 ifdhandler.c:1992:find_baud_rate() Reader can do: 20645 00000028 ifdhandler.c:1992:find_baud_rate() Reader can do: 41290 00000035 ifdhandler.c:1992:find_baud_rate() Reader can do: 82581 00000023 ifdhandler.c:1992:find_baud_rate() Reader can do: 165161 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 30968 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 18750 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 37500 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 75000 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 150000 00000022 ifdhandler.c:1992:find_baud_rate() Reader can do: 300000 00000023 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to 300000 bauds 00000024 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default protocol found in ATR. Using T=0 00000023 PPS: Sending request: FF 10 96 79 00000027 -> 000000 6F 04 00 00 00 00 0C 00 00 00 FF 10 96 79 00022876 <- 000000 80 04 00 00 00 00 0C 00 00 00 FF 10 96 79 00000098 PPS: Receiving confirm: FF 10 96 79 00000030 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication timeout: 266240 ms 00000022 commands.c:2115:SetParameters() length: 5 bytes 00000021 -> 000000 61 05 00 00 00 00 0D 00 00 00 96 00 02 0A 00 00020124 <- 000000 00000063 commands.c:2135:SetParameters() Not enough data received: 0 bytes 00000013 prothandler.c:103:PHSetProtocol() PTS failed (612), using T=0 00000012 winscard.c:490:SCardConnect() UnrefReader() count was: 2 00000012 winscard_svc.c:449:ContextThread() CONNECT rv=0x80100066 for client 9 00000241 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000084 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9 00000022 winscard_svc.c:315:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 9 00000015 winscard_svc.c:389:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 9 00000025 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000139 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000038 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9 00000019 winscard_svc.c:315:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 9 00000015 winscard_svc.c:389:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 9 00000024 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000039 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000049 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9 00000019 winscard_svc.c:315:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 9 00000015 winscard_svc.c:389:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 9 00000024 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9 00000030 winscard_svc.c:315:ContextThread() Received command: CONNECT from client 9 00000016 winscard.c:235:SCardConnect() Attempting Connect to Gemalto USB Shell Token V2 (309EF81F) 00 00 using protocol: 3 00000013 readerfactory.c:739:RFReaderInfo() RefReader() count was: 1 00000012 winscard.c:330:SCardConnect() powerState: POWER_STATE_INUSE 00000012 prothandler.c:87:PHSetProtocol() Attempting PTS to T=0 00000013 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=0, usb:08e6/3438:libudev:0:/dev/bus/usb/001/008 (lun: 0) 00000014 ifdhandler.c:1953:extra_egt() Extra EGT patch applied 00000012 ifdhandler.c:1983:find_baud_rate() Card baud rate: 300000 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 12903 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 25806 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 51613 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 103226 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 206452 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 412903 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 825806 00000021 ifdhandler.c:1992:find_baud_rate() Reader can do: 154839 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 258065 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 17204 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 34409 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 68817 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 137634 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 275269 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 550538 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 172043 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 12403 00000011 ifdhandler.c:1992:find_baud_rate() Reader can do: 24806 00000012 ifdhandler.c:1992:find_baud_rate() Reader can do: 49612 00000018 ifdhandler.c:1992:find_baud_rate() Reader can do: 99225 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 198450 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 396899 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 74419 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 124031 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 86022 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 38710 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 64516 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 10323 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 20645 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 41290 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 82581 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 165161 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 30968 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 18750 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 37500 00000015 ifdhandler.c:1992:find_baud_rate() Reader can do: 75000 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 150000 00000014 ifdhandler.c:1992:find_baud_rate() Reader can do: 300000 00000015 ifdhandler.c:784:IFDHSetProtocolParameters() Set speed to 300000 bauds 00000015 towitoko/atr.c:341:ATR_GetDefaultProtocol() no default protocol found in ATR. Using T=0 00000016 PPS: Sending request: FF 10 96 79 00000018 -> 000000 6F 04 00 00 00 00 0E 00 00 00 FF 10 96 79 00029959 <- 000000 00000076 commands.c:1387:CCID_Receive() Not enough data received: 0 bytes 00000019 ifdhandler.c:887:IFDHSetProtocolParameters() PPS_Exchange Failed 00000018 prothandler.c:103:PHSetProtocol() PTS failed (605), using T=0 00000017 winscard.c:490:SCardConnect() UnrefReader() count was: 2 00000016 winscard_svc.c:449:ContextThread() CONNECT rv=0x80100066 for client 9 00000913 winscard_svc.c:315:ContextThread() Received command: RELEASE_CONTEXT from client 9 00000112 winscard.c:204:SCardReleaseContext() Releasing Context: 0x75999A1B 00000021 winscard_svc.c:423:ContextThread() RELEASE_CONTEXT rv=0x0 for client 9 00000968 winscard_svc.c:307:ContextThread() Client die: 9 00000077 winscard_svc.c:918:MSGCleanupClient() Thread is stopping: dwClientID=9, threadContext @0x8f226d8 00000020 winscard_svc.c:924:MSGCleanupClient() Freeing SCONTEXT @0x8f226d8 |
From: Ludovic R. <lud...@gm...> - 2013-03-14 13:09:45
|
2013/3/14 Florent Deybach <fde...@gm...>: > Hello, Hello, > I have the following environment : > > Ubuntu 12.10 32bits > OpenSC 0.13 > pcscd 1.8.5 > pcsc-tools 1.4.20 > libccid 1.4.7-1 > > I am using a Gemalto IAS/ECC smart into a Gemalto USB Shell Token V2. > > The token is fully operational when used on a physical machine however when > my Ubuntu is a Virtual Machine running under VMware Player 5.0.2 I have a > problem. > > The reader and the card are shown by pcsc_scan, however all OpenSC tools > (opensc-tools, pkcs15-init, etc.) fail because it cannot see the card, i.e. > I have the following error message: > "Failed to connect to card: Unresponsive card (correctly inserted?)" Please generate a pcscd log as documented at http://pcsclite.alioth.debian.org/pcsclite.html#support Bye -- Dr. Ludovic Rousseau |