On Feb 8, 2008 8:00 PM, chrysn <[EMAIL PROTECTED]> wrote:
> hello,

Hello,

> i've written some code to send "card inserted" / "card removed" events
> over the linux hardware abstraction layer (that which makes hardware
> play together nicely with the desktop), partially to get familiar with
> hal, partially looking forward to having card insertion handled like cd
> insertion in gnome (like "You've inserted a GPG smart card I have never
> seen. Do you want me to fetch the key from the URL specified?").
>
> now one of my issues is detecting the type of smart card inserted. i've
> got three cards to "test" (meaning to insert; i'd rather not run unknown
> commands on them as breaking them might mean losing important keys), but
> the only way of distinguishing between them that i've seen from the
> PyCSC (yes, everything is in python) is reading their ATR id.
>
> now my question is: is there a reliable way of telling which type of
> card a card is (ie, PGP card / bank card / ecard (austrian health
> system) /  whatever other card) without having to send commands special
> to the respective types that might potentially do bad things on other cards?

You can have a look at my ATR list [1]. For example:
3B FA 13 00 FF 81 31 80 45 00 31 C1 73 C0 01 00 00 90 00 B1
        OpenPGP

Identifying a card application by the card ATR is not reliable. But is
often the only way.

> ps if you want to have a look at the code, it's in
> http://svn.amsuess.com/tools/hal/pcsc_hal_interface/, see README for
> installation instructions

I am redirected to
https://svn.amsuess.com/tools/hal/pcsc_hal_interface/ and then a
login/password is required. How can I anonymously fetch your code?

Bye

[1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to