cardid / WebCard-IE

Smart Card Browser Plugin
http://plugin.cardid.org
MIT License
98 stars 35 forks source link

t0 or t1 #8

Closed andreypapp closed 8 years ago

andreypapp commented 8 years ago

is there any chance of getting/setting the protocol? (T=0 or T=1). The card i am trying to work with accepts commands in both protocols (low-level in t=0 and applet-based in t=1)

Thanks in advance.

adricasti commented 8 years ago

Currently, the call to SCardConnect lets the driver select the appropriate protocol. I have not seen cards that support both, so normally a card that supports T=1 will use it and if not it will fall back to T=0. You could change the code to explicitly state the protocol you want to use in that line.