1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

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.
This commit is contained in:
Werner Koch 2006-11-14 14:53:42 +00:00
parent 650293c4f6
commit a98ea89fa5
8 changed files with 124 additions and 1 deletions

View file

@ -1400,6 +1400,8 @@ handle_signal (int signo)
case SIGUSR2:
if (opt.verbose)
log_info ("SIGUSR2 received - checking smartcard status\n");
/* Nothing to check right now. We only increment a counter. */
bump_card_eventcounter ();
break;
case SIGTERM: