[Pcsclite-cvs-commit] PKCS11/src p11x_slot.c,1.28,1.29

rousseau@quantz.debian.org rousseau@quantz.debian.org
Fri, 29 Aug 2003 16:20:41 +0200


Update of /cvsroot/muscleapps/PKCS11/src
In directory quantz:/tmp/cvs-serv19072/src

Modified Files:
	p11x_slot.c 
Log Message:
use MSC_LEAVE_TOKEN instead of MSC_RESET_TOKEN. Correct [ #300065 ]
slot_TokenChanged resets the token, which causes problems to other apps
using the token on the Mac.


Index: p11x_slot.c
===================================================================
RCS file: /cvsroot/muscleapps/PKCS11/src/p11x_slot.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- p11x_slot.c	5 Jun 2003 00:46:49 -0000	1.28
+++ p11x_slot.c	29 Aug 2003 14:20:38 -0000	1.29
@@ -1106,7 +1106,7 @@
 
                 log_Log(LOG_LOW, "Slot %d changed", i + 1);
 
-                slot_DisconnectSlot(i + 1, MSC_RESET_TOKEN);
+                slot_DisconnectSlot(i + 1, MSC_LEAVE_TOKEN);
                 slot_UpdateSlot(i + 1);
 
                 if (!CKR_ERROR(slot_BeginTransaction(i + 1)))