Menu

#2 SCardControl issues by using pyscard

closed-fixed
8
2008-09-28
2008-09-22
Anonymous
No

Hi,

I’m using the python model pyscard to write the test program based on SCardXXX functions. Now each function works well except SCardControl.

Operation System: Mac OS X 10.5.5
Python Version: 2.5

Following is the soucecode and the return message.

cmd = [ ]

hresult, response = SCardControl(hcard, SCARD_CTL_CODE(3400), cmd)

if hresult != SCARD_S_SUCCESS:

raise error, 'SCardControl failed: ' + SCardGetErrorMessage(hresult)

return error message:

Traceback (most recent call last):

File "./test.py", line 38, in <module>

raise error, 'SCardControl failed: ' + SCardGetErrorMessage(hresult)

scard.error: SCardControl failed: Invalid parameter given.

Discussion

  • Nobody/Anonymous

    And the reader works well when I using the C test program.

     
  • jean-daniel aussel

    This problem is now solved in release 1.6.7, and was found and fixed by Mattias Brändström. It was caused by pyscard using the name SCardControl when calling dlsym to get the function pointer for that function. The name of the SCardControl function that takes a control code parameter is SCardControl132.

     
  • jean-daniel aussel

    • priority: 5 --> 8
    • status: open --> open-fixed
     
  • jean-daniel aussel

    • labels: 1059420 --> PCSC wrapper
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.