All,I have a DoD CAC Card that I have mostly working with MUSCLE, however if the card is removed and re-inserted applications that were already running (using the libmusclepkcs11 module) no longer detect the presence of the card until the application is restarted.
I've worked around the issue by recompiling libmusclepkcs11 with the following patch:
--- muscleframework-1.1.5.orig/libmusclepkcs11/src/p11x_slot.c 2004-05-31 05:43:11.000000000 -0500 +++ muscleframework-1.1.5.orig.rsk/libmusclepkcs11/src/p11x_slot.c 2006-07-11 17:12:46.000000000 -0500
@@ -898,11 +898,11 @@
if (slot->conn.hCard)
{
+ slot->conn.hCard = 0;
log_Log(LOG_LOW, "Releasing connection (slot_DisconnectSlot)");
(void)MSC_ERROR(msc_ReleaseConnection(&slot->conn, action));
}
- slot->conn.hCard = 0;
slot->slot_info.flags = (slot->slot_info.flags & ~CKF_TOKEN_PRESENT);
}
Are there plans for a better fix ?
Thanks.
--
Roy Keene
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
