diff options
author | Justus Winter <[email protected]> | 2017-03-02 13:35:09 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-02 13:50:23 +0000 |
commit | 4735ab96aa5577d40ba7b3f72d863057198cc6a7 (patch) | |
tree | 86aaf8c2a2a6b87cd5798ee3d7f0ae832b31ef7d /g10/trustdb.h | |
parent | agent: Improve error message for the KEYTOCARD command. (diff) | |
download | gnupg-4735ab96aa5577d40ba7b3f72d863057198cc6a7.tar.gz gnupg-4735ab96aa5577d40ba7b3f72d863057198cc6a7.zip |
gpg: Fix (quick) key generation with --always-trust.
* g10/keygen.c (do_generate_keypair): Only update the ownertrust if we
do have a trust database.
* g10/trustdb.c (have_trustdb): New function.
* g10/trustdb.h (have_trustdb): New prototype.
* tests/openpgp/quick-key-manipulation.scm: Remove workaround.
GnuPG-bug-id: 2695
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'g10/trustdb.h')
-rw-r--r-- | g10/trustdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/trustdb.h b/g10/trustdb.h index 3088063aa..00be4df74 100644 --- a/g10/trustdb.h +++ b/g10/trustdb.h @@ -128,6 +128,7 @@ int setup_trustdb( int level, const char *dbname ); void how_to_fix_the_trustdb (void); const char *trust_model_string (int model); gpg_error_t init_trustdb (int no_create); +int have_trustdb (void); void tdb_check_trustdb_stale (ctrl_t ctrl); void sync_trustdb( void ); |