diff options
author | Werner Koch <[email protected]> | 2004-05-11 19:11:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-05-11 19:11:53 +0000 |
commit | 2cce42c23f628383485d04a8c38a13c490b62257 (patch) | |
tree | f1a4e07feaebde155a658fab0894d598b98a42e6 /agent/gpg-agent.c | |
parent | * sign.c (gpgsm_sign): Include the error source in the final error (diff) | |
download | gnupg-2cce42c23f628383485d04a8c38a13c490b62257.tar.gz gnupg-2cce42c23f628383485d04a8c38a13c490b62257.zip |
* gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.
(start_connection_thread): Hack to simulate a ticker.
* trustlist.c (agent_trustlist_housekeeping)
(agent_reload_trustlist): New. Protected all global functions
here with a simple counter which is sufficient for Pth.
* fingerprint.c (gpgsm_get_key_algo_info): New.
* sign.c (gpgsm_sign): Don't assume RSA in the status line.
* keylist.c (list_cert_colon): Really print the algorithm and key
length.
(list_cert_raw, list_cert_std): Ditto.
(list_cert_colon): Reorganized to be able to tell whether a root
certificate is trusted.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r-- | agent/gpg-agent.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index ad6ef33ea..8d21dc43c 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -1083,6 +1083,7 @@ handle_signal (int signo) "re-reading configuration and flushing cache\n"); agent_flush_cache (); reread_configuration (); + agent_reload_trustlist (); break; case SIGUSR1: @@ -1129,6 +1130,12 @@ start_connection_thread (void *arg) if (opt.verbose) log_info ("handler for fd %d started\n", fd); + + /* FIXME: Move this housekeeping into a ticker function. Calling it + for each connection should work but won't work anymore if our + cleints start to keep connections. */ + agent_trustlist_housekeeping (); + start_command_handler (-1, fd); if (opt.verbose) log_info ("handler for fd %d terminated\n", fd); |