|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Muscle] C_CloseSession problem with libmusclecardpkcs11.so
From: Geoffrey Elgey (gelgey
vintela.com)
Date: Thu Apr 28 2005 - 07:27:56 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
G'day,
Below is the debug log for a simple C_OpenSession / C_CloseSession call
(in which both calls return "ok"):
28/04 21:48:00 +C_GetFunctionList : start
28/04 21:48:00 -C_GetFunctionList : end RV(0x0)
28/04 21:48:00 +C_Initialize : start
28/04 21:48:00 Using non-native (application supplied) thread locks
28/04 21:48:00 Application does not allow thread creation; disabling
threaded slot watcher
28/04 21:48:00 All threading disabled
28/04 21:48:00 Added reader: SCR 331 00 00
28/04 21:48:00 Active session list:
28/04 21:48:00 Slot 1 changed
28/04 21:48:00 Attempting establish
28/04 21:48:00 Establish connection
28/04 21:48:01 Begin transaction: 1, rv=0
28/04 21:48:01 Token: MuscleCard Applet
28/04 21:48:01 Card supports RSA
28/04 21:48:01 Card supports RSA key gen
28/04 21:48:01 Card supports RSA NOPAD
28/04 21:48:01 Card supports RSA PKCS#1
28/04 21:48:01 Card supports DSA
28/04 21:48:01 Card supports DES but not returning mechanism
28/04 21:48:01 Card supports 3DES but not returning mechanism
28/04 21:48:01 End transaction: 1, rv=0
28/04 21:48:01 (p11_general.c 115): error: 0x32 "CKR_DEVICE_REMOVED"
28/04 21:48:01 -C_Initialize : end RV(0x0)
28/04 21:48:01 +C_OpenSession : start
28/04 21:48:01 Active session list:
28/04 21:48:01 Attempting establish
28/04 21:48:01 New session handle: 1
28/04 21:48:01 -C_OpenSession : end RV(0x0)
28/04 21:48:01 +C_CloseSession : start
28/04 21:48:01 Active session list:
28/04 21:48:01 Session ID: 804B4A8
28/04 21:48:01 Removing session: 1
28/04 21:48:01 Attempting release
28/04 21:48:01 Releasing connection (slot_ReleaseConnection)
28/04 21:48:01 Done releasing (slot_ReleaseConnection)
28/04 21:48:01 -C_CloseSession : end RV(0x0)
28/04 21:48:01 +C_Finalize : start
28/04 21:48:01 Freed st.slots
28/04 21:48:01 -C_Finalize : end RV(0x0)
There's a CKR_DEVICE_REMOVED error generated in a call to
slot_TokenChanged() in C_Initialize(), but this is ignored (and hence
C_Initialize() returns CKR_OK).
I'm not sure why CKR_DEVICE_REMOVED is returned at all, or whether it
should be ignored in C_Initialize().
-- Geoff
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]