List Info

Thread: Re: Opensc for OSX Leopard (10.5)




Re: Opensc for OSX Leopard (10.5)
country flaguser name
Belgium
2008-02-13 06:18:09
mikael.marcheorange-ftgroup.com a écrit :
>  
> Hello,
> I'm a Mac user, and I often use opensc to work with my
PKI for my 
> work. Recently i update my os to l_opard, and opensc
seem to not work 
> with this system. I see on the wiki that the version
0.2.2 is not 100% 
> compatible with l_opard, and so, I want to now if they
are any plan to 
> port opensc in l_opard, or if there exist beta version
compatible with 
> leopard, or any guidelines?
Hi Mikael,

The main problem with Leopard is bug in pcscd, which is
still not fixed 
in 10.5.2. The daemon appends 0x00 to the ATR, and probably
your card is 
not recognized anymore by OpenSC.

You can check the reported ATR with
/Library/OpenSC/bin/opensc-tool -a 
(do it a least twice because sometimes, at the first run the
ATR is 
correctly reported...).

Then create an entry in /Library/OpenSC/etc/opensc.conf with
something 
like this:
card_atr 3B:7D:11:00:00...... {
    driver = your_card_driver
    type = value
    }

Sometimes you need to define a type too. Check for your card
in 
http://www.opensc-project.org/opensc/bro
wser/trunk/src/libopensc/cards.h 
to get this value.

Cheers,

Jean-Pierre
>  
> Best regards,
>  
> Mikael Marche.
>
> *Mikaël Marche*
> Ingénieur R&D chargé d'études sur les techniques et
les méthodes de 
> test des systèmes logiciels
>

_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

Re: Opensc for OSX Leopard (10.5)
country flaguser name
Estonia
2008-02-13 12:18:34
On Feb 13, 2008, at 2:18 PM, JP Szikora wrote:
> The main problem with Leopard is bug in pcscd, which is
still not  
> fixed
> in 10.5.2. The daemon appends 0x00 to the ATR, and
probably your  
> card is
> not recognized anymore by OpenSC


The attached patch for src/libopensc/card.c should fix the
problem  
with the additional zeros appended to the ATR for all ATR
related  
lookups inside OpenSC.

In theory the patch checks on Apple platforms if the ATR
happens to be  
MAX_ATR_SIZE long and for a given ATR match the tail of the
ATR from  
PCSC contains only zeros, it assumes it is running with the
buggy PC/ 
SC implementation.

Give it a try/view and send your feedback/comments.






-- 
Martin Paljak
http://martin.paljak.pri.
ee
+3725156495



_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel
  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )