gpg: Extend TRUST_foo status lines with the trust model.
authorWerner Koch <wk@gnupg.org>
Mon, 2 May 2016 17:10:59 +0000 (19:10 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 2 May 2016 17:10:59 +0000 (19:10 +0200)
commitae1889320b822d48f7118a29391605e9ac992701
tree7b9eb9593da3ba38ba323c2c6310bc2fa5843007
parent5cef6118580fe658a27d32e85696d88775ad417a
gpg: Extend TRUST_foo status lines with the trust model.

* g10/trustdb.h (TRUST_FLAG_TOFU_BASED): New.
* g10/trustdb.c (trust_model_string): Lowercase the strings.  Add arg
"model" and change callers to call with OPT.TRUST_MODEL.
* g10/tofu.c (tofu_wot_trust_combine): Set TRUST_FLAG_TOFU_BASED.
* g10/pkclist.c (write_trust_status): New.
(check_signatures_trust): Call new function.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/pkclist.c
g10/tofu.c
g10/trustdb.c
g10/trustdb.h