[Pcsclite-muscle] Reliable reader names

Ludovic Rousseau ludovic.rousseau at gmail.com
Thu Nov 30 07:31:07 PST 2023


Le jeu. 30 nov. 2023 à 15:55, Andreas Schwier
<andreas.schwier at cardcontact.de> a écrit :
> On 30.11.23 15:39, Ludovic Rousseau wrote:
> > Le jeu. 30 nov. 2023 à 14:07, Andreas Schwier
> > <andreas.schwier at cardcontact.de> a écrit :
> >>
> >> Hi Ludovic,
> >
> > Hello Andreas,
> >
> >> is there a configuration option, so that pcscd creates reliable reader
> >> names ?
> >>
> >> Now the reader name contains, in addition to the serial number, a
> >> dynamically (?) generated number pair:
> >>
> >> Identiv uTrust 3512 SAM Token [CCID Interface] (55511639601026) 00 00
> >> Identiv uTrust 3512 SAM Token [CCID Interface] (55511639601420) 01 00
> >>
> >> This makes the configuration of reader names difficult, as the last two
> >> numbers keep changing after reboot.
> >
> > They are the index and slot numbers.
> > See https://blog.apdu.fr/posts/2010/05/what-is-in-pcsc-reader-name/
> >
> >> Maybe a good option would be to suppress the two numbers, if the reader
> >> reports a serial number.
> >
> > Yes, it would be technically possible.
> > But I am not sure it is a good idea.
> >
> > Maybe you can just ignore them in your code?
>
> But I need to specify the full reader name in SCardConnect(). So putting
> the reader name in a configuration file will not work. I'd rather then
> read the full reader list and perform a partial match to find the reader
> based on the serial number.

I think that is the correct solution.

> Or is there an option to pass only a partial reader name in SCardConnect() ?

No.

Bye

-- 
 Dr. Ludovic Rousseau



More information about the pcsclite-muscle mailing list