Re: pcsc-lite call for identifying class 2 reader

Ludovic Rousseau <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8BZ=90dRwpgitqstjZgsUTBN+Sp3qVWBW05bFQ7JAEfiQ@mail.gmail.com>
2013/6/26 Anand Renju <[email protected]>:
> Hi,

Hello,

> In pcsc-lite, do we have any api which tells that reader is a class 2
> reader. Does SCardGetAttrib have attrib id to query this?

A class 2 reader is a pinpad reader with verify and modify PIN code
done by the reader?

You can use SCardControl() with CM_IOCTL_GET_FEATURE_REQUEST to know
if the reader + driver supports FEATURE_VERIFY_PIN_DIRECT and
FEATURE_MODIFY_PIN_DIRECT. This is documented in PC/SC v2 part 10
specification [1]

You can have a look at the scardcontrol.c code [2]. This program is
licensed under GPL v2+.

Bye

[1] http://www.pcscworkgroup.com/specifications/specdownload.php
[2] http://anonscm.debian.org/viewvc/pcsclite/trunk/Drivers/ccid/examples/scardcontrol.c?view=markup

--
 Dr. Ludovic Rousseau
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.