[FYI PATCH] restrict pcscd to a single USB port / path

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[FYI PATCH] restrict pcscd to a single USB port / path

Anthony Foiani

Greetings.

My current project had the requirement to only recognize the crypto
token on a specific USB port.

Here is a method that is working for me, although it is limited to
polled libusb -- I suspect that it'd be easier with udev-based systems
to just modify the rules instead.

Again, this is probably not suitable for mainline, but in case anyone
else has the same requirement, they are welcome to it.

Best regards,
Anthony Foiani




------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

0001-add-ability-to-listen-to-only-one-port.patch (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [FYI PATCH] restrict pcscd to a single USB port / path

Ludovic Rousseau
2013/3/27 Anthony Foiani <[hidden email]>:
> Greetings.

Hello,

The MUSCLE list [1] is a better place to talk about PC/SC and pcsc-lite.

> My current project had the requirement to only recognize the crypto
> token on a specific USB port.

Why do you have this requirement?

What should happen if the crypto token is connected to another USB
port? Just nothing?

> Again, this is probably not suitable for mainline, but in case anyone
> else has the same requirement, they are welcome to it.

It may be a good idea and I may included it in mainline. But I do not
yet understand why someone would need this.

Bye

[1] http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com

--
 Dr. Ludovic Rousseau

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: [FYI PATCH] restrict pcscd to a single USB port / path

Anthony Foiani
Ludovic, greetings --

On Wed, Mar 27, 2013 at 3:45 PM, Ludovic Rousseau
<[hidden email]> wrote:
> The MUSCLE list [1] is a better place to talk about PC/SC and pcsc-lite.

Ok.  If I have anything else to add, I'll subscribe and submit there.

>> My current project had the requirement to only recognize the crypto
>> token on a specific USB port.
>
> Why do you have this requirement?

Well, the short answer is: because that's what the customer asked for.

Longer answer is that this device also offer USB-over-IP capabilities,
on a different USB port; without being able to distinguish between the
two, it would be hard to say whether the device is supposed to use the
crypto token directly, or if it is supposed to make it available over
TCP/IP and not use it itself.

Weak, but that's how the thing is designed, and that's what the spec says.

> It may be a good idea and I may included it in mainline. But I do not
> yet understand why someone would need this.

This device was originally specified years ago; if we ever get a
chance to do a v2, we hope that we can get rid of some of the cruft.
But for now, I'm stuck with the spec as written.

Thanks again for your feedback, and everyone's work on the code already.

Best regards,
Anthony Foiani

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel