Pin-pad on SPR332 smartcard reader does not work under OSX

Niobos niobos at dest-unreach.be
Mon Feb 9 16:25:39 CET 2015


On 2015-02-09 15:33, NIIBE Yutaka wrote:
> On 02/09/2015 11:07 PM, Niobos wrote:
>> How should I do that? Here is what I've found so far:
>>
>> % /usr/sbin/pcscd -v
>> PCSC Framework version 1.4.0.
>> Copyright (C) 1999-2002 by David Corcoran <corcoran at linuxnet.com>.
>> Copyright (C) 2001-2005 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
>> Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
>> Portions Copyright (C) 2000-2007 by Apple Inc.
>> Report bugs to <sclinux at linuxnet.com>.
> 
> Thanks for the information.
> 
> In case of GNU/Linux, we have header files for PC/SC.  In those files,
> we have definitions like:
> 
>    https://sources.debian.net/src/pcsc-lite/1.8.13-1/src/PCSC/reader.h/#L120
>    https://sources.debian.net/src/pcsc-lite/1.8.13-1/src/PCSC/reader.h/#L125
> 
> In gnupg/scd/apdu.c, we use that value (the reason not to include the
> file is avoiding build dependency).
> 
> IIUC, the value would be different in OS X's PCSC Framework, or it's
> not supported.

I have searched my system for reader.h, but didn't find that file. Next,
I grepped through the better part of my filesystem (/usr, /System,
/Library) for GET_FEATURE_REQUEST, and also came up empty.

I have found a website [1] which might mean more to you that it does to
me. From what I understand, OSX uses the same constants that GNU/Linux:

> #define SCARD_CTL_CODE(code) (0x42000000 + (code))
> #define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)

How can I debug this further?

N


[1] http://ludovicrousseau.blogspot.be/2013_10_01_archive.html





More information about the Gnupg-users mailing list