mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
b66854ac93
commit
4aeeaa65ad
4 changed files with 48 additions and 2 deletions
|
@ -5617,8 +5617,6 @@ do_generate_keypair (ctrl_t ctrl, struct para_data_s *para,
|
|||
|
||||
pk = find_kbnode (pub_root, PKT_PUBLIC_KEY)->pkt->pkt.public_key;
|
||||
|
||||
update_ownertrust (ctrl, pk, TRUST_ULTIMATE);
|
||||
|
||||
if (!opt.flags.no_auto_trust_new_key)
|
||||
update_ownertrust (ctrl, pk,
|
||||
((get_ownertrust (ctrl, pk) & ~TRUST_MASK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue