summaryrefslogtreecommitdiffstats
path: root/g10/trust.c
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/trust.c
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 'g10/trust.c')
-rw-r--r--g10/trust.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/trust.c b/g10/trust.c
index 3f53e4bf3..9749bd786 100644
--- a/g10/trust.c
+++ b/g10/trust.c
@@ -267,7 +267,11 @@ update_ownertrust (ctrl_t ctrl, PKT_public_key *pk, unsigned int new_trust)
(void)pk;
(void)new_trust;
#else
+ u32 keyid[2];
+
tdb_update_ownertrust (ctrl, pk, new_trust, 0);
+ keyid_from_pk (pk, keyid);
+ tdb_update_utk (keyid, (new_trust & TRUST_ULTIMATE));
#endif
}