aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2012-01-20 03:33:51 +0000
committerDavid Shaw <[email protected]>2012-01-20 21:50:42 +0000
commitdeee8147aab086161c91e6aa6fb41d7148a630f6 (patch)
tree37259d29ecea3bfcb8418e2638763872f90686ba /g10/tdbio.h
parentestream: Fix unclean usage of realloc. (diff)
downloadgnupg-deee8147aab086161c91e6aa6fb41d7148a630f6.tar.gz
gnupg-deee8147aab086161c91e6aa6fb41d7148a630f6.zip
Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)
* g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level * g10/trustdb.c (check_trustdb_stale): Request a rebuild if pending_check_trustdb is true (set when we detect a trustdb parameter has changed). * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons listing for min_cert_level not matching. * g10/tdbio.c (tdbio_update_version_record, create_version_record, tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record, tdbio_write_record): Add a byte for min_cert_level in the tdbio version record.
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r--g10/tdbio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h
index c2434faa4..252a393b7 100644
--- a/g10/tdbio.h
+++ b/g10/tdbio.h
@@ -1,5 +1,5 @@
/* tdbio.h - Trust database I/O functions
- * Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2012 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -54,6 +54,7 @@ struct trust_record {
byte completes;
byte cert_depth;
byte trust_model;
+ byte min_cert_level;
ulong created; /* timestamp of trustdb creation */
ulong nextcheck; /* timestamp of next scheduled check */
ulong reserved;