Kleopatra: Use event counter CARD of gpg-agent
Open, NormalPublic

Assigned To
None
Authored By
• ebo
Nov 13 2024, 1:22 PM

Description

Currently, each time a smart card view window is opened, scdaemon read actions are triggered.

This is inefficient, the event counter of gpg-agent should be used, if the counter has not changed, the card does not have to be read again.

GETEVENTCOUNTER
Return a status line named EVENTCOUNTER with the current values
of all event counters.  The values are decimal numbers in the range
0 to UINT_MAX and wrapping around to 0.  The actual values should
not be relied upon, they shall only be used to detect a change.

The currently defined counters are:

ANY  - Incremented with any change of any of the other counters.
KEY  - Incremented for added or removed private keys.
CARD - Incremented for changes of the card readers stati.

Event Timeline

FWIW, there is some code in gpa which uses the event counter. It was introduced with
rGPA936825b4b994cdf5900fc987abd9be7889989627

• werner triaged this task as Normal priority.Nov 14 2024, 3:14 PM