mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Print ownertrust in TOFU+PGP trust model.
* g10/keyedit.c: Print ownertrust in TOFU+PGP trust model. -- The key editor currently prints out the ownertrust value assigned to a key only when using the classic or PGP trust models; but that value is also meaningful in the recently introduced TOFU+PGP combined model. Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
This commit is contained in:
parent
e573e6188d
commit
f5aa51aaac
@ -3233,9 +3233,10 @@ show_key_with_all_names (ctrl_t ctrl, estream_t fp,
|
|||||||
opt.legacy_list_mode?
|
opt.legacy_list_mode?
|
||||||
((int) keystrlen () + 13):5, "");
|
((int) keystrlen () + 13):5, "");
|
||||||
/* Ownertrust is only meaningful for the PGP or
|
/* Ownertrust is only meaningful for the PGP or
|
||||||
classic trust models */
|
classic trust models, or PGP combined with TOFU */
|
||||||
if (opt.trust_model == TM_PGP
|
if (opt.trust_model == TM_PGP
|
||||||
|| opt.trust_model == TM_CLASSIC)
|
|| opt.trust_model == TM_CLASSIC
|
||||||
|
|| opt.trust_model == TM_TOFU_PGP)
|
||||||
{
|
{
|
||||||
int width = 14 - strlen (otrust);
|
int width = 14 - strlen (otrust);
|
||||||
if (width <= 0)
|
if (width <= 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user