summaryrefslogtreecommitdiffstats
path: root/g10/trustdb.h
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2002-10-30 04:11:57 +0100
committerDavid Shaw <dshaw@jabberwocky.com>2002-10-30 04:11:57 +0100
commit09158d1e990cbd27e676f07c2381a1a586637d19 (patch)
tree3ff2290c91240f1bceb488679d2a82eeecbdd865 /g10/trustdb.h
parent* configure.ac: Add --disable-regex in case some platform just can't (diff)
downloadgnupg2-09158d1e990cbd27e676f07c2381a1a586637d19.tar.xz
gnupg2-09158d1e990cbd27e676f07c2381a1a586637d19.zip
* packet.h, trustdb.h, trustdb.c (trust_string): New. Return a string
like "fully trusted", "marginally trusted", etc. (get_min_ownertrust): New. Return minimum ownertrust. (update_min_ownertrust): New. Set minimum ownertrust. (check_regexp): New. Check a regular epression against a user ID. (ask_ownertrust): Allow specifying a minimum value. (get_ownertrust_info): Follow the minimum ownertrust when returning a letter. (clear_validity): Remove minimum ownertrust when a key becomes invalid. (release_key_items): Release regexp along with the rest of the info. (validate_one_keyblock, validate_keys): Build a trust sig chain while validating. Call check_regexp for regexps. Use the minimum ownertrust if the user does not specify a genuine ownertrust. * pkclist.c (do_edit_ownertrust): Only allow user to select a trust level greater than the minimum value. * parse-packet.c (can_handle_critical): Can handle critical trust and regexp subpackets. * trustdb.h, trustdb.c (clear_ownertrusts), delkey.c (do_delete_key), import.c (import_one): Rename clear_ownertrust to clear_ownertrusts and have it clear the min_ownertrust value as well. * keylist.c (list_keyblock_print): Indent uid to match pub and sig.
Diffstat (limited to 'g10/trustdb.h')
-rw-r--r--g10/trustdb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/trustdb.h b/g10/trustdb.h
index c94a2daa1..8d8a0cf3e 100644
--- a/g10/trustdb.h
+++ b/g10/trustdb.h
@@ -46,6 +46,7 @@ void init_trustdb( void );
void sync_trustdb( void );
int trust_letter( unsigned value );
+const char *trust_string (unsigned int value);
void revalidation_mark (void);
@@ -60,9 +61,10 @@ void enum_cert_paths_print( void **context, FILE *fp,
int refresh, ulong selected_lid );
unsigned int get_ownertrust (PKT_public_key *pk);
+unsigned int get_min_ownertrust (PKT_public_key *pk);
int get_ownertrust_info (PKT_public_key *pk);
void update_ownertrust (PKT_public_key *pk, unsigned int new_trust );
-int clear_ownertrust (PKT_public_key *pk);
+int clear_ownertrusts (PKT_public_key *pk);
/*-- tdbdump.c --*/