OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] PCSCD Not reading Smart Card

From: Wesley Nugent (wnugentabcsinc.com)
Date: Fri Aug 08 2008 - 11:10:05 CDT


Wesley Nugent wrote:
> Ludovic Rousseau wrote:
>> On Fri, Aug 8, 2008 at 4:05 PM, Wesley Nugent <wnugentabcsinc.com> wrote:
>>
>>> Sorry. Here is the rest of the info:
>>>
>>> (gdb) backtrace
>>> #0 0xb7e6e463 in strlen () from /lib/tls/i686/cmov/libc.so.6
>>> #1 0xb7f4bbf7 in SCardConnect () from /usr/lib/libpcsclite.so.0
>>> #2 0x08048c50 in ?? ()
>>> (gdb)
>>>
>>
>> Please recompile pcsc-lite with debug info (it should be the default).
>> And do not strip the installed library.
>>
>> Also please use the latest pcsc-lite version. You are using 1.3.2 and
>> the latest version is 1.4.102
>>
>>
> Ok, I have no idea what I'm doing wrong. I uninstalled the old pcscd
> and libasedrive-usb (that I had obtained through apt-get. I
> downloaded the source, ./configure, make, make install on pcscd-lite,
> libasedrive-usb, and ccid. I run /usr/local/sbin/pcscd (this is where
> it installed on make install) and now it won't load my card. Says
> files are missing and not looking in the directory where the drivers
> are installed for libasedrive-usb. I tried apt-get install
> libasedrive-usb since I nkow those work. Made sure I'm using the
> proper pcscd. I run pcscd -f -d and see it detect my card.
>
> I run scriptor or my scard-read or scard-write programs, none of them
> work. Says:
>
> winscard_msg.c:94:SHMClientSetupSessino() Error: connect to client
> socket: Connection Refused
>
> on scriptor I also get: Could not create Chipcard::PCSC object:
> Service not available
>
> On my program, I get: The smart card resource manager is not running.
>
> Did I miss something while compiling pcsc-lite v 1.4.102?

Ok, I went back to a copy of the image I'm using for development to
before I started working on the smart card (I had installed and
uninstalled via apt many packages and couldn't ensure all were gone). I
downloaded the source code and recompiled.

Now I get winscard_clnt.c:3232:SCardCheckDaemonAvailablity() PCSC Not
Running, and yet I can clearly see /usr/local/sbin/pcscd running in ps
-ef and showing the debug info in the foreground on my console.

Please advise what flag I may have missed or startup option to get it to
run in daemon mode.

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