From 2cce42c23f628383485d04a8c38a13c490b62257 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 11 May 2004 19:11:53 +0000 Subject: * 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. --- agent/gpg-agent.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'agent/gpg-agent.c') 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); -- cgit v1.2.3