Ludovic Rousseau wrote on 03/20/06 05:58 AM:
On 20/03/06, Shawn Willden <[EMAIL PROTECTED]> wrote:
On Monday 20 March 2006 03:00, Ludovic Rousseau wrote:
What exact problem do you have?
The problem arises when libmusclecard is used with other PCSC implementations.
I know this is an issue specifically for SunRay usage, since Sun provides its
own libpcsc.
Right - the "Sun Ray PC/SC SRCOM bypass"[1] is a binary replacement for
libpcsclite.so, but it does not have the log_msg() symbol.
What I've had to do is to create a bastardized libmusclecard
that included all of the symbols that libpcsclite.so provides but
libpcsc-srcom.so does not. It would be cleaner, IMHO, if libpcsclite.so
provided only the symbols defined by the PCSC specification. That way
programs and libraries writted to pcsc-lite can work with other PCSC
implementations.
One solution is to reuse the hack I have in my ccid driver:
- add a --disable-pcsclite argument
- provide empty log_msg() and log_xxd() functions if pcsclite is not used
This means that we'd have to deliver two builds for Solaris (on each
platform) - one for use with pcscd and one for use with Sun Ray.
log_msg (used by Log<n> macros in PCSC/debuglog.h) is the only problem
I've run into so-far with libmusclecard-1.3.x pointed at the Sun Ray
bypass. It seems like we should be able to come up with a solution
that's not decided at configure-time.
I suppose the other approach would be to ask for log_msg() to be
implemented in the Sun Ray bypass, but before I ask for that, I'd like
to see it at least mentioned in the PCSC-lite specification.
Assuming, of course, that log_msg() and log_xxd() aren't defined in the PCSC
specification. I didn't look.
In fact PCSC does not have an real API specification. We just use the
one defined by Microsoft.
I was looking at [2] - I suppose it's not really a specification, but it
seems to be the best we have as far as defining what an implementation
of libpcsclite.so would need to deliver.
~Iain
[1] http://www.sun.com/download/products.xml?id=42c5d3d9
[2] http://pcsclite.alioth.debian.org/pcsc-lite/
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle