mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
ca02a8b78f
commit
94f6b9010d
2 changed files with 73 additions and 18 deletions
12
doc/DETAILS
12
doc/DETAILS
|
@ -722,7 +722,7 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB:
|
|||
userid encoded in UTF-8 and percent escaped. The fingerprint is
|
||||
identical for all TOFU_USER lines up to a NEWSIG line.
|
||||
|
||||
*** TOFU_STATS <summary> <sign-count> <encryption-count> [<policy> [<tm1> <tm2> <tm3> <tm4> [<validity>]]]
|
||||
*** TOFU_STATS <summary> <sign-count> <encryption-count> [<policy> [<tm1> <tm2> <tm3> <tm4> [<validity> [<sign-days> <encrypt-days>]]]]
|
||||
|
||||
Statistics for the current user id.
|
||||
|
||||
|
@ -742,7 +742,7 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB:
|
|||
- unknown :: Policy is "unknown" (TOFU information does not
|
||||
contribute to the key's validity)
|
||||
|
||||
TM1 ist the time the first message was verified. TM2 is the time
|
||||
TM1 is the time the first message was verified. TM2 is the time
|
||||
the most recent message was verified. TM3 is the time the first
|
||||
message was encrypted. TM4 is the most recent encryption. All may
|
||||
either be seconds since Epoch or an ISO time string
|
||||
|
@ -753,6 +753,14 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB:
|
|||
takes on value 0. Instead, if there is a conflict, VALIDITY still
|
||||
reflects the key's validity (values: 1-4).
|
||||
|
||||
SIGN-COUNT and ENCRYPTION-COUNT are the number of messages that we
|
||||
have seen that have been signed by this key / encryption to this
|
||||
key.
|
||||
|
||||
SIGN-DAYS and ENCRYPTION-DAYS are similar, but the number of days
|
||||
(in UTC) on which we have seen messages signed by this key /
|
||||
encrypted to this key.
|
||||
|
||||
*** TOFU_STATS_SHORT <long_string>
|
||||
|
||||
Information about the TOFU binding for the signature.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue