OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Muscle] C_CloseSession problem with libmusclecardpkcs11.so

From: Geoffrey Elgey (gelgeyvintela.com)
Date: Thu Apr 28 2005 - 02:14:37 CDT


G'day,

I'm finding a problem with C_CloseSession using the latest
libmusclecardpkcs11.so library.

I've got some code that opens a PKCS#11 session, performs a login/logout
if a PIN is presented, then closes the session (see attached).

When I execute this code using a cryptoflex card and the
opensc_pkcs11.so library, everything is fine:

$ ./session-test /usr/local/lib/pkcs11/opensc-pkcs11.so 0
## Opening session ... ok
## Closing session ... ok

$ ./session-test /usr/local/lib/pkcs11/opensc-pkcs11.so 0 00000000
## Opening session ... ok
## Performing login ... ok
## Performing logout ... ok
## Closing session ... ok

But when I execute this code using a Cyberflex e-gate 32K card (with a
musclecard applet loaded) and the libmusclecardpkcs11.so library (from
muscleframework-1.1.5), I get the following:

$ ./session-test /usr/local/lib/libmusclepkcs11.so 1
## Opening session ... ok
## Closing session ... ok

$ ./session-test /usr/local/lib/libmusclepkcs11.so 1 00000000
## Opening session ... ok
## Performing login ... ok
## Performing logout ... ok
## Closing session ... failed: device removed

Can anyone shed some light on this?

-- Geoff

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle