scd-backport-2-0 branch

Werner Koch wk at gnupg.org
Fri Jun 22 10:32:36 CEST 2012


On Fri, 22 Jun 2012 05:19, gniibe at fsij.org said:

> BTW, during the work of backport, I couldn't understand the reason why
> scdaemon remains after removal of card (or removal of card reader /
> token).  I think that it is easier to just shutdown scdaemon when
> it detects removal of card.

One reason is that scdaemon monitors the card reader and tells other
application about the presence of a card.  The main mechanism for this
are the "reader_N.status" files.  There is also an option to run a script
and meanwhile I may even agree to add d-bus support as an option.

Another reason is that we eventually want to support RFID reader where
the card presence is not as easy monitored as with USB tokens or card
readers.

What we should change is the baroque way of setting up channels between
gpg-agent and scdaemon; i.e. a mix of pipe and socket servers.  To
streamline the system it would be better to use a well known socket for
scdaemon in the same way as gpg-agent does it.  But that is something
for 2.1.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list