[opensc-devel] [opensc-commits] Opensc for OSX Leopard (10.5)

Martin Paljak martin at paljak.pri.ee
Wed Feb 13 19:18:34 CET 2008


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: leopard.diff
Type: application/octet-stream
Size: 1849 bytes
Desc: not available
Url : http://www.opensc-project.org/pipermail/opensc-devel/attachments/20080213/87aa9bb9/attachment.obj 
-------------- next part --------------




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




More information about the opensc-devel mailing list