summaryrefslogtreecommitdiffstats
path: root/g10/trustdb.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-01-12 05:34:31 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2022-01-12 05:34:31 +0100
commit4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8 (patch)
tree5ae2eb25a31cb8589ef5c42ea370d796beb14ae1 /g10/trustdb.h
parentgpg: Report failed generation of subkey pair via status interface (diff)
downloadgnupg2-4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8.tar.xz
gnupg2-4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8.zip
gpg: Fix adding the list of ultimate trusted keys.
* g10/keygen.c (do_generate_keypair): Remove another call to update_ownertrust. * g10/trust.c (update_ownertrust): Add call to tdb_update_utk. * g10/trustdb.c (tdb_update_utk): New. * g10/trustdb.h (tdb_update_utk): New. -- GnuPG-bug-id: 5742 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to '')
-rw-r--r--g10/trustdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/trustdb.h b/g10/trustdb.h
index 4f1e1e2c1..3015da042 100644
--- a/g10/trustdb.h
+++ b/g10/trustdb.h
@@ -80,6 +80,7 @@ int tdb_keyid_is_utk (u32 *kid);
/* Return the list of ultimately trusted keys. The caller must not
* modify this list nor must it free the list. */
struct key_item *tdb_utks (void);
+void tdb_update_utk (u32 *kid, int add);
void check_trustdb (ctrl_t ctrl);
void update_trustdb (ctrl_t ctrl);
int setup_trustdb( int level, const char *dbname );