diff options
| author | Werner Koch <[email protected]> | 2006-11-14 14:53:42 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2006-11-14 14:53:42 +0000 |
| commit | a98ea89fa5737fed15055ecfc9cbba121e372207 (patch) | |
| tree | e752e00b9538eaa32e3fe275c3a4967c0909fe22 /doc | |
| parent | sm/ (diff) | |
| download | gnupg-a98ea89fa5737fed15055ecfc9cbba121e372207.tar.gz gnupg-a98ea89fa5737fed15055ecfc9cbba121e372207.zip | |
New command GETEVENTCOUNTER.
* command.c (bump_key_eventcounter): New.
(bump_card_eventcounter): New.
(cmd_geteventcounter): New command.
* gpg-agent.c (handle_signal): Call bump_card_eventcounter.
* findkey.c (agent_write_private_key): Call bump_key_eventcounter.
* trustlist.c (agent_reload_trustlist): Ditto.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/gpg-agent.texi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index 44440bbcf..a1b7ac3b2 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -657,6 +657,7 @@ secret keys. * Agent LEARN:: Register a smartcard * Agent PASSWD:: Change a Passphrase * Agent UPDATESTARTUPTTY:: Change the Standard Display +* Agent GETEVENTCOUNTER:: Get the Event Counters @end menu @node Agent PKDECRYPT @@ -1076,6 +1077,31 @@ to another screen. It is only required because there is no way in the ssh-agent protocol to convey this information. +@node Agent GETEVENTCOUNTER +@subsection Get the Event Counters + +@example + GETEVENTCOUNTER +@end example + +This function return one status line with the current values of the +event counters. The event counters are useful to avoid polling by +delaying a poll until something has changed. The values are decimal +numbers in the range @code{0} to @code{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 are: +@table @code +@item ANY +Incremented with any change of any of the other counters. +@item KEY +Incremented for added or removed private keys. +@item CARD +Incremented for changes of the card readers stati. +@end table + + @mansect see also @ifset isman @command{gpg2}(1), |
