aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-11-15 00:19:49 +0000
committerDavid Shaw <[email protected]>2003-11-15 00:19:49 +0000
commitc47ec46526b603a4052873fab3e33ad5f03f758b (patch)
tree3849873131a0e6b3c1a95f791e0733e0414f8d30 /g10/keyedit.c
parent* options.h, g10.c, keyedit.c, keylist.c, mainproc.c: Clarify the (diff)
downloadgnupg-c47ec46526b603a4052873fab3e33ad5f03f758b.tar.gz
gnupg-c47ec46526b603a4052873fab3e33ad5f03f758b.zip
* options.h, trustdb.c (trust_model_string, init_trustdb): Add support for
"external" trust model, where the user can provide a pregenerated trustdb. * keyedit.c (keyedit_menu): Do not allow editing ownertrust with an external trust model trustdb.
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index d3d1640a9..5ecec5941 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1565,6 +1565,13 @@ keyedit_menu( const char *username, STRLIST locusr, STRLIST commands,
break;
case cmdTRUST:
+ if(opt.trust_model==TM_EXTERNAL)
+ {
+ tty_printf(_("Owner trust may not be set while "
+ "using an user provided trust database\n"));
+ break;
+ }
+
show_key_with_all_names( keyblock, 0, 0, 0, 1, 0 );
tty_printf("\n");
if( edit_ownertrust( find_kbnode( keyblock,