List Info

Thread: New cyberJack driver contribution: PINPAD, no dependency on kernel module.




New cyberJack driver contribution: PINPAD, no dependency on kernel module.
country flaguser name
United States
2007-12-06 19:12:18
Hello,

one year ago I mentioned that I would like to contribute the
cyberJack 
PINPAD reader driver for OpenCT. I apologize for the delay.
Finally, it 
is available.

I am attaching the patch against SVN rev 1007 (Dec 6 2007).

I tested that I can send commands to the card through 
ifd_card_command(). I also tested PINPAD authentication
through 
ifd_card_perform_verify(). I ran my tests on RedHat Fedora
Core 7 and 8.

The advantage of my implementation is that the code is
completely 
contained in the attached file and only depends on OpenCT
framework. In 
particular, it doesn't depend on kernel module or additional
libraries.

I hope it will get integrated into the set of included
drivers.


Some of my tests follow:

# /sbin/rmmod cyberjack; ./src/ifd/ifdhandler -d -d -d -d -d
-d -F 
cyberjack usb /dev/bus/usb/004/005

# openct-tool list
   0 cyberjack reader

# openct-tool atr
Detected cyberjack reader
Card present, status changed
ATR: 3b b7 94 00 81 31 fe 65 53 50 4b 32 33 90 00 d1 90 01


Thank you.

_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel
  
Re: New cyberJack driver contribution: PINPAD, no dependency on kernel module.
user name
2007-12-07 04:00:59
On Dec 7, 2007 2:12 AM, Andrey Jivsov <openscbrainhub.org> wrote:
> one year ago I mentioned that I would like to
contribute the cyberJack
> PINPAD reader driver for OpenCT. I apologize for the
delay. Finally, it
> is available.
>
> I am attaching the patch against SVN rev 1007 (Dec 6
2007).

Patch commited in revision 1008.
Please test it.

Thanks,

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

Re: New cyberJack driver contribution: PINPAD, no dependency on kernel module.
country flaguser name
Germany
2008-01-15 16:51:57
Ludovic Rousseau wrote:
> On Dec 7, 2007 2:12 AM, Andrey Jivsov <openscbrainhub.org> wrote:
>> one year ago I mentioned that I would like to
contribute the cyberJack
>> PINPAD reader driver for OpenCT. I apologize for
the delay. Finally, it
>> is available.
>>
>> I am attaching the patch against SVN rev 1007 (Dec
6 2007).
> 
> Patch commited in revision 1008.
> Please test it.

I have applied this patch to 0.16.4 on my FreeBSD 7.0
(amd64) and I got
this:


# ifdhandler -F -ddddd -r0 cyberjack usb /dev/ugen1
Debug: ifd_open: trying to open cyberjackusb:/dev/ugen1
Debug: cyberjack_open: device=usb:/dev/ugen1
Debug: ifd_sysdep_usb_control: BSD:
ifd_sysdep_usb_control(0x6)
Debug: ifd_sysdep_usb_control: BSD: CTRL bmRequestType 0x80
bRequest 0x6
wValue 0x100 wIndex 0x0 wLength 0x12
Debug: ifd_sysdep_usb_control: BSD: CTRL SEND data  00 04 d1
00 08 00 00
00 a2 79 40 00 00 00 00 00 b8 93
Debug: ifd_sysdep_usb_control: BSD: CTRL RECV data  12 01 00
01 00 00 00
10 4b 0c 00 01 00 01 02 03 00 01
Debug: ifd_usb_control: usb req type=x80 req=x06 val=x0100
ind=x0000 len=18
Debug: ifd_usb_control: recv  12 01 00 01 00 00 00 10 4b 0c
00 01 00 01
02 03 00 01
Error: detected e-com/pp at usb:/dev/ugen1, max packet 16
Debug: cyberjack_open: trying to claim interface 0 on
device, config 1
Debug: usb_set_params: called. config x01 ifc x00 eps
x02/x82
Debug: ifd_sysdep_usb_claim_interface: interface=0 (not yet
implemented)
Debug: cyberjack_open: successfully claimed interface
Debug: cyberjack_open: cyberjack: returning device
0x800d18080
Debug: cyberjack_activate: called (dev = 0xd18080).
Debug: usb_send: usb send to=x02
Debug: usb_send: send  00 04 00 e2 c1 00 23
Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=0
Debug: ifd_sysdep_usb_bulk: wrote buffer[7]= 00 04 00 e2 c1
00 23
Debug: usb_send: usb send to=x02
Debug: usb_send: send  00 04 00 e2 c0 00 22
Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=0
Debug: ifd_sysdep_usb_bulk: wrote buffer[7]= 00 04 00 e2 c0
00 22
Debug: ifd_sysdep_usb_bulk: endpoint=2 direction=1
Error: usb_bulk read failed: Input/output error
Error: cyberjack: failed to activate 2
Error: cyberjack: failed to activate 2: no cookie
Error: Failed to activate reader; err=-1

I started my own attempt to write my own, kernel FreeBSD
driver.
My driver has no problems with sending initialization
sequences
attempted above.

--Marcin

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

Re: New cyberJack driver contribution: PINPAD, no dependency on kernel module.
user name
2008-01-16 03:27:46
On Jan 16, 2008 9:59 AM, Andrey Jivsov <openscbrainhub.org> wrote:
> If you look at the source code of ifd/ifd-cyberjack.c,
you are long way
> along the path to make it work, once you are done with
initialization.
> Why not enhance the version in SVN, which already
works, with more
> reliable initialization sequence that you developed?
Thank you.

Instead of using SVN directly you can get a snapshot at [1].
You will
not have to use/fight with autoconf/automake/libtool
yourself.

Bye

[1] http://www.opensc-project.org/files/openct/snapshots/

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )