On 16/09/06, Martin Preuss <[EMAIL PROTECTED]> wrote:
Hi,

Hello,

Since 1.1.0 the endianess of the control codes returned by the control command
CM_IOCTL_GET_FEATURE_REQUEST has changed.

However, on some systems older versions (pre 1.1.0) are still in use, so I'd
like to be able to detect whether the ccid driver currently in use on the
running system is pre or post 1.1.0.

That is a legitimate question. pre-1.1.0 versions are buggy and I did
not tried to be backward compatible. So I did not implement anything
like what you need.

Is there a way to query the driver name/version of a ccid driver?

No. But I can add a SCardControl command to do that. That command
would only be available in post-1.1.0 versions so that will not
completely solve your problem.

Currently
I'm just parsing the drivers log messages until I stumble upon the version
string, but this is just an ugly hack...

You can also parse the driver Info.plist file
(/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist in my case)
and look for the ifdProductString string.

Bye,

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to