Jean-Michel Pouré - GOOZE wrote:
> > http://libusb.org/wiki/FAQ#CanIcreateadriverlessdeviceusingHIDclass
> 
> I wron't discuss as I don't know if improving HID for GNU/Linux is
> really time consuming.

Hopefully you read the page anyway to find out about the
considerations for HID. It may still be relevant even if the
HID token is a little older.

The HIDAPI library created by Alan Ott is as easy to use as it gets
for HID class devices with Linux.

The Linux kernel since a long time offers an API which can be used
without any drivers and also without libusb, but the API has limited
capabilities, and depending on the device they may not be sufficient.

Then it will be neccessary to use libusb instead, and udev must be
configured to allow the user to disable the kernel HID class driver.

I believe HIDAPI now supports not only using libusb but also the
kernel API.


> > Do you know how it is used by CryptoAPI and/or PKCS#11 applications?
> CSP and PKCS#11.

OK! Yes, then the idea is similar to mine, except I do not like to
use HID in order to reduce portability issues. HID has advantages
for Windows but is more complicated everywhere else. (It can even
be impossible on Mac OS X. Apple changed the policy for replacing
the kernel HID driver in 10.6.)


> Just contact me privately and I can ship you a free HID token for
> testing. As you are the "wizard" of libusb, you may be able to judge
> and maybe find a solution to communicate with the tokens.

No need for token, but thanks for the offer! :) The code that already
supports the device is instead what I would look at. Is it available
online?


//Peter

Attachment: pgp48aJSg2TtO.pgp
Description: PGP signature

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

Reply via email to