diff options
author | Werner Koch <[email protected]> | 2017-03-31 18:03:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-03-31 18:08:23 +0000 |
commit | 3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8 (patch) | |
tree | 7dd291ff076c3647424f85e42de4c8817d471641 /g10/main.h | |
parent | gpg: Assert that an opaque parameter is really what we expect. (diff) | |
download | gnupg-3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8.tar.gz gnupg-3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8.zip |
gpg: Print more stats for the keydb and the signature cache.
* g10/sig-check.c (sig_check_dump_stats): New.
(cache_stats): New struct.
(check_key_signature2): Update stats.
* g10/gpg.c (g10_exit): Call new function.
* g10/keydb.c (kid_not_found_cache_count): Replace by ...
(kid_not_found_stats): ... new struct. Change users.
(keydb_stats): New struct. Update the counters.
(keydb_dump_stats): Print all stats.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index 2a65647c3..911f4da87 100644 --- a/g10/main.h +++ b/g10/main.h @@ -251,6 +251,7 @@ int clearsign_file (ctrl_t ctrl, int sign_symencrypt_file (ctrl_t ctrl, const char *fname, strlist_t locusr); /*-- sig-check.c --*/ +void sig_check_dump_stats (void); /* SIG is a revocation signature. Check if any of PK's designated revokers generated it. If so, return 0. Note: this function |