From 4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 12 Jan 2022 13:34:31 +0900 Subject: 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 --- g10/trustdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/trustdb.h') 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 ); -- cgit v1.2.3