[Pcsclite-muscle] pcsc-lite & SCardLocateCardsByATR() function

Lev Serebryakov lev at serebryakov.spb.ru
Fri Oct 14 11:48:48 UTC 2011


Hello, Pcsclite-muscle.

  I'm porting some software, which uses WinSCard API, from Windows to
 Linux with pcsc-lite.

  Almost everything is Ok, but this software uses one call, which is
 absent in PCSC-Lite implementation: SCardLocateCardsByATR(), and
 structure SCARD_ATRMASK.

   This API is used to find cardreader with card of specific vendor,
 with which this software works: it looks like, tat call returns all
 available cradreaders and cards, seen by them, and select cards,
 which have specific attributes (it checks many bytes in returned
 SCARD_ATRMASK to be specific one, looks like long "magic number").

   How this API could be emulated in terms of pcsc-lite API? I could
  not find any similar APIs in pcsc-lite.

   Thank you.

-- 
// Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>




More information about the Pcsclite-muscle mailing list