On 4/14/05, Karsten Ohme <[EMAIL PROTECTED]> wrote:
Fixed a bug in my own code: in the Windows DllMain() in PCSC.cpp break; was missing in the swicth statement. So everytime the Conext was released.
Can you send me the patch?
http://www.inf.tu-dresden.de/~ko189283/MuscleCard/
See below.
I am integrating your previous patch for libmusclecard. I have some questions: - why do you change SCARD_SCOPE_SYSTEM in SCARD_SCOPE_USER?
I had some problems, so I looked for a reason. I changed it back to SYSTEM.
- why localHContext is not a static variable anymore? because you need to access it in pcsc-lite/win32/PCSC.cpp? I think that pcsc-lite/win32/PCSC.cpp as nothing to do with pcsc-lite but should now be included in libmusclecard. Your comment?
Yes. Has nothing to do. Is for the Windows dll. The name is because it was the name in pcsclite win32. Else it does not work. If a variable is extern it cannot be static.
- why do you change SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1 in SCARD_PROTOCOL_T0 only?
I have a broken card (Giesecke & Devrient [EMAIL PROTECTED] Expert 64k), which chooses the T1 protocol, but can handle it. I have forgotten to remove this again. It is included now.
- why do you remove the "Release Context" code in MSCReleaseConnection?
Have I? I cannot remember. The card context is released, when the library is unloaded. musclecard_fini for Unix and DllMain for Windows.
Can you 'cvs update' your copy and provide a new patch?
Yes. I check out today, 21.April everything and did it.
http://www.inf.tu-dresden.de/~ko189283/MuscleCard/
Bye, Karsten
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
