g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>
authorNeal H. Walfield <neal@g10code.com>
Fri, 16 Dec 2016 13:32:27 +0000 (14:32 +0100)
committerNeal H. Walfield <neal@g10code.com>
Fri, 16 Dec 2016 13:32:39 +0000 (14:32 +0100)
commit94f6b9010d2e80a75ccbb21426faf0b30195f1ab
tree37d81077ccacd3375df3a0b612a0b1b5993651b0
parentca02a8b78fca8815388a859962584d75169ae3ee
g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>

* doc/DETAILS: Add SIGN-DAYS and ENCRYPT-DAYS to the TOFU_STATS status
line.
* g10/tofu.c (write_stats_status): Take additional parameters
signature_days and encryption_days.  Update callers.  Include them in
the tfs record and TOFU status lines.
(show_statistics): Compute the number of days on which we saw a
message signed by FINGERPRINT, and the number of days on which we
encrypted a message to it.

Signed-off-by: Neal H. Walfield <neal@g10code.com>
doc/DETAILS
g10/tofu.c