gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.
authorNeal H. Walfield <neal@g10code.com>
Wed, 21 Oct 2015 11:28:15 +0000 (13:28 +0200)
committerNeal H. Walfield <neal@g10code.com>
Wed, 21 Oct 2015 11:45:48 +0000 (13:45 +0200)
commitd05ff81732e20e6f9d6d7a6281a96a312b001abb
tree4e158b62458e076486e589144e9bc0df2fc884c3
parent243f90afba87e99ca42e2451ac5cc59d00a044ac
gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.

* g10/trustdb.c (init_trustdb): Recognize tofu and tofu+pgp as
possibly saved trust models.  Also register the ultimately trusted
keys if the trust model is tofu or tofu+pgp.
(check_trustdb): Don't skip if the trust model is tofu or tofu+pgp.
(update_trustdb): Likewise.
(tdb_check_trustdb_stale): Likewise.
(validate_keys): If the trust model is TOFU, just write out the
ultimately trusted keys.

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