mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Fix adding the list of ultimate trusted keys.
* g10/keygen.c (do_generate_keypair): Remove call to
register_trusted_keyid for updating user_utk_list.
* g10/trust.c (register_trusted_keyid): Remove.
(update_ownertrust): Add call to tdb_update_utk.
* g10/trustdb.c (tdb_register_trusted_keyid): Make it internal
function by adding "static" qualifier.
Replace calls of register_trusted_keyid to tdb_register_trusted_keyid.
(tdb_update_utk): New.
* g10/trustdb.h (tdb_update_utk): New.
--
Backport of master commit of:
4aeeaa65ad
GnuPG-bug-id: 5742
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
f16c535eee
commit
4cc724639c
4 changed files with 51 additions and 18 deletions
|
@ -75,13 +75,13 @@ const char *get_validity_string (ctrl_t ctrl,
|
|||
|
||||
|
||||
/*-- trustdb.c --*/
|
||||
void tdb_register_trusted_keyid (u32 *keyid);
|
||||
void tdb_register_trusted_key (const char *string);
|
||||
/* Returns whether KID is on the list of ultimately trusted keys. */
|
||||
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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue