gpg: Always initialize the trust db when generating keys.
authorJustus Winter <justus@g10code.com>
Thu, 2 Mar 2017 15:25:20 +0000 (16:25 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 2 Mar 2017 15:25:20 +0000 (16:25 +0100)
commit0c4d0620d327e8a2069532a5519afefe867a47d6
treefce87bc8fd4096ac942622a139f69f61033b9e59
parent4735ab96aa5577d40ba7b3f72d863057198cc6a7
gpg: Always initialize the trust db when generating keys.

* g10/gpg.c (main): Always initialize the trust db when generating
keys.
* g10/keygen.c (do_generate_keypair): We can now assume that there is
a trust db.
--
It is important to mark keys we create as ultimately trusted.

Fixes-commit: 4735ab96aa5577d40ba7b3f72d863057198cc6a7
GnuPG-bug-id: 2695
Signed-off-by: Justus Winter <justus@g10code.com>
g10/gpg.c
g10/keygen.c