mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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: 4735ab96aa
GnuPG-bug-id: 2695
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
4735ab96aa
commit
0c4d0620d3
2 changed files with 7 additions and 3 deletions
|
@ -3949,6 +3949,11 @@ main (int argc, char **argv)
|
|||
case aListTrustDB:
|
||||
rc = setup_trustdb (argc? 1:0, trustdb_name);
|
||||
break;
|
||||
case aKeygen:
|
||||
case aFullKeygen:
|
||||
case aQuickKeygen:
|
||||
rc = setup_trustdb (1, trustdb_name);
|
||||
break;
|
||||
default:
|
||||
/* If we are using TM_ALWAYS, we do not need to create the
|
||||
trustdb. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue