On Wed, May 04, 2005 at 06:25:38PM -0500, Todd Denniston wrote:
> Andrew Pimlott wrote:
> > 
> > On Wed, May 04, 2005 at 08:55:25AM -0500, Todd Denniston wrote:
> > > I agree the documentation is a bit confusing, and mostly geared to using
> > > just the muscle applet. I do not see you mention getting a token
> > > driver/interpreter/bundle/plugin (not sure what the folks around here 
> > > realy
> > > call it) for the CAC card.
> > 
> > Right, the bundle/plugin part is what I was missing.  It seems to be
> > left out of most of the documentation I've found, and so I didn't really
> > understand its role.  However, now that I know that's what I need, I've
> > found the past discussion and made a little progress.
> > 
> > I downloaded SmartCardServices-31 from the opendarwin site.  I went into
> > the src/CACPlugin and since I didn't see any build instructions, I
> > compiled it (after installing libpcsclite-dev, libmusclepkcs11-dev, and
> > zlib1g-dev from Debian) with
> > 
> >     gcc -c -shared -I/usr/include/PCSC commonAccessCard.c
> >     ld -shared -o commonAccessCard.so commonAccessCard.o
> 
> is the ld needed, your not telling ld anything else to link
> commonAccessCard.o to to make commonAccessCard.so? or am I missing something
> subtle here? I would have been tempted to just 
> `cp commonAccessCard.o commonAccessCard.so`

I didn't really know what I was doing, so I tried to make everything as
similar as /usr/lib/pcsc/services/slbCryptoflex.bundle, which comes in
the debian package libcflexplugin:

    % file slbCryptoflex.bundle/Contents/Linux/slbCryptoflex
    slbCryptoflex.bundle/Contents/Linux/slbCryptoflex: ELF 32-bit LSB shared 
object, Intel 80386, version 1 (SYSV), stripped

Since that is a shared object, I wanted to make mine one as well.  The
.o file I compiled is not a shared object, according to file:

    % file commonAccessCard.o 
    commonAccessCard.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 
(SYSV), not stripped

But my linker knowledge is rusty, so I don't know if what I did is
right.

> Get http://www.openssl.org/source/openssl-0.9.6.tar.gz

Right, you told me about this in your other message and I completely
forgot about it.  I'll try soon.

Andrew
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to