diff options
author | Werner Koch <[email protected]> | 2021-11-13 19:34:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-11-13 19:34:06 +0000 |
commit | 99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71 (patch) | |
tree | b20761fcffe080bbea90194ffd36d0f9c8403f23 /g10/tdbio.h | |
parent | keyboxd: New option --steal-socket. (diff) | |
download | gnupg-99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71.tar.gz gnupg-99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71.zip |
gpg: Remove stale ultimately trusted keys from the trustdb.
* g10/tdbdump.c (export_ownertrust): Skip records marked with the
option --trusted-key.
(import_ownertrust): Clear the trusted-key flag.
* g10/tdbio.h (struct trust_record): Add field flags.
* g10/tdbio.c (tdbio_dump_record): Improve output.
(tdbio_read_record, tdbio_write_record): Handle flags.
* g10/trustdb.c (verify_own_keys): Clear stale trusted-keys and set
the flag for new --trusted-keys.
(tdb_update_ownertrust): Add arg as_trusted_key. Update callers.
--
GnuPG-bug-id: 5685
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r-- | g10/tdbio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h index 267a37970..9452d76c9 100644 --- a/g10/tdbio.h +++ b/g10/tdbio.h @@ -79,6 +79,7 @@ struct trust_record { byte depth; ulong validlist; byte min_ownertrust; + byte flags; } trust; struct { byte namehash[20]; |