diff options
author | Werner Koch <wk@gnupg.org> | 2015-06-04 18:08:26 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-06-04 18:08:26 +0200 |
commit | a4a15195c2a3729025a3ba3439ac8860083fceeb (patch) | |
tree | 2c88b60ff534373b33930223eedf80c1c9f7f14e /g10/tdbio.h | |
parent | gpg: Cleanup error code path in case of a bad trustdb. (diff) | |
download | gnupg2-a4a15195c2a3729025a3ba3439ac8860083fceeb.tar.xz gnupg2-a4a15195c2a3729025a3ba3439ac8860083fceeb.zip |
gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c
* g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
* g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
* g10/trustdb.c (read_trust_record): Ditto.
(tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
(tdb_update_ownertrust, update_min_ownertrust): Ditto.
(tdb_clear_ownertrusts, update_validity): Ditto.
(tdb_cache_disabled_value): Ditto.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r-- | g10/tdbio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h index d2595180c..2e15ffe31 100644 --- a/g10/tdbio.h +++ b/g10/tdbio.h @@ -109,8 +109,8 @@ int tdbio_end_transaction(void); int tdbio_cancel_transaction(void); int tdbio_delete_record( ulong recnum ); ulong tdbio_new_recnum(void); -int tdbio_search_trust_byfpr(const byte *fingerprint, TRUSTREC *rec ); -int tdbio_search_trust_bypk(PKT_public_key *pk, TRUSTREC *rec ); +gpg_error_t tdbio_search_trust_byfpr (const byte *fingerprint, TRUSTREC *rec); +gpg_error_t tdbio_search_trust_bypk (PKT_public_key *pk, TRUSTREC *rec); void tdbio_how_to_fix (void); void tdbio_invalid(void); |