On 10/08/05, Geoffrey Elgey <[EMAIL PROTECTED]> wrote: > G'day, Hello,
> I want to perform certain actions when a token is removed or inserted > into a slot. The PKCS#11 library includes a "WaitForSlotEvent" function, > but apparently this is not well supported across different PKCS#11 > implementations. > > I've written a daemon that makes PCKS#11 calls to detect a change in the > slot status and execute a script, but I feel this is not the best way of > handling the problem. > > I'm thinking that alower-level solution may be better. Is there a way to > configure pcsc-lite so that a script is executed on card removal/insertion? Have a look at card_eventmgr [1] from the pam_pkcs11 project [2]. The program still has rough edges (for example with reader removal/insertion) but should work in "normal" cases. Code improvements are welcome :-) You may also be interested in pkcs11_eventmgr [3]. It does what you want (at the PKCS#11 level) but if _far_ slower than pam_pkcs11. Bye, [1] http://www.opensc.org/pam_pkcs11/wiki/CardEventmgr [2] http://www.opensc.org/pam_pkcs11/ [3] http://www.opensc.org/pam_pkcs11/wiki/Pkcs11Eventmgr -- Dr. Ludovic Rousseau For private mail use [EMAIL PROTECTED] and not "big brother" Google _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
