Hello,

I want to use PyCSC on Windows 2000 (PyCSCS 0.0.3, Python 2.4.3).

Compiling the extension was somewhat difficult with Visual Studio Express
2005 and Microsoft Server 2003 R2 Platform SDK, but after compiling it
manually with only the Microsoft headers and libs, it seems to work.

The card = pycsc.pyscs() fails with unknown error code 0x00000032, I think
on SCardConnect. I switched on Debug Mode, here is the output:

>>> card=pycsc.pycsc()
pycsc called with: Reader name:
Mode: 2
Preferred protocol: 1
SCardEstablishContext successful
SCardListReaders dry run successful
SCardListReaders successful
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
pycsc.PycscException: Error returned by PCSC: 0x00000032 (Unknown)
>>>

Without a card:

>>> card=pycsc.pycsc()
pycsc called with: Reader name:
Mode: 2
Preferred protocol: 1
SCardEstablishContext successful
SCardListReaders dry run successful
SCardListReaders successful
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
pycsc.PycscException: Error returned by PCSC: 0x80100069
(SCARD_W_REMOVED_CARD)
>>>

The card is a crypto card, Siemens CardOS, I tried with life cycles
OPERATIONAL and MANUFACTURING.

OpenSC's cardos-info works.

Regards,
Mike.

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

Reply via email to