Re: event managers

Ludovic Rousseau <[email protected]> Sun, 17 Mar 2019 17:10:32 +0100
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <CAGstE8D48fJwFhU=U5C2TRcr=BPWyA6B-JxfvP+Aq_CmCBKxfw@mail.gmail.com>
Le dim. 17 mars 2019 à 15:42, <[email protected]> a écrit :
> Hi all,

Hello,

> I noticed that (atleast with Ubuntu-distr), there are multiple event mnagers present:
>
> 1)      Card_eventmgr
> 2)      Pkcs11_eventmgr
> Both of them have their config residing in /etc/pam_pkcs11/
> And those file look for 90% suspiciously similar.
>
> So anyone around here  that can:
> 1)      explain what the benefit of one is over the other?

card_eventmgr detects events at the PC/SC layer.
pkcs11_eventmgr detects events at the PKCS#11 layer

If you do not use a PKCS#11 library maybe card_eventmgr is better :-)

> 2)      In case of multiple readers & multiple cards, how to see which one got inserted or removed?

I don't know. I have not used these programs since years.

> 3)      How to properly de-bounce them (on ONE event taking place, the cardin / cardout routines are multiple times executed

You should not have duplicated events.
I think it is a bug.

Bye

PS: I was the maintainer of pam_pkcs11.

-- 
 Dr. Ludovic Rousseau


_______________________________________________
Opensc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensc-devel