New scdaemon command to watch device removal
Testing, NormalPublic

Description

For an application like gpa or screenlocker which uses Poldi, it is good to have a command (say, LIST_DEVICE), like:

$ gpg-connect-agent "SCD LIST_DEVICE [some-option] --watch"
S <same status report from scdaemon>
...
OK
$ 

Here, I assume --watch option asks scdaemon to keep watching the status and reporting it.
With no --watch option, it simply returns list of devices (or... list of cards, list of apps, list of keygrips and device, list of card readers. I'm not yet sure what exactly is better).

gniibe created this task.Mar 3 2020, 8:26 AM
gniibe claimed this task.
gniibe added a project: Feature Request.
gniibe triaged this task as Normal priority.
gniibe changed the task status from Open to Testing.Apr 2 2020, 8:46 AM
gniibe added a project: Testing.

Push the change to master.

gniibe added a comment.Apr 2 2020, 8:48 AM

It runs like:

$ gpg-connect-agent "scd devinfo --watch" /bye
S DEVINFO_START
S DEVINFO_END
S DEVINFO_STATUS new
S DEVINFO_START
S DEVICE generic D276000124010200F517000000010000 openpgp
S DEVINFO_END
S DEVINFO_STATUS removal
S DEVINFO_START
S DEVINFO_END
OK
$