summaryrefslogtreecommitdiffstats
path: root/g10/tdbio.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-03-26 18:06:43 +0200
committerWerner Koch <wk@gnupg.org>2018-03-26 18:06:43 +0200
commita750ebebf35a392f1c72d6aee5618df0d9f25ff7 (patch)
treec0c1f70d6b0e435b5284db49bae02f5b6425335a /g10/tdbio.h
parentgpg: Return better error codes in case of a too short trustdb. (diff)
downloadgnupg2-a750ebebf35a392f1c72d6aee5618df0d9f25ff7.tar.xz
gnupg2-a750ebebf35a392f1c72d6aee5618df0d9f25ff7.zip
gpg: Pass CTRL arg to get_trusthashrec.
* g10/tdbio.c (get_trusthashrec): Add arg CTRL. (tdbio_search_trust_byfpr): Ditto. (tdbio_search_trust_bypk): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r--g10/tdbio.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h
index beaa30876..267a37970 100644
--- a/g10/tdbio.h
+++ b/g10/tdbio.h
@@ -110,8 +110,10 @@ int tdbio_end_transaction(void);
int tdbio_cancel_transaction(void);
int tdbio_delete_record (ctrl_t ctrl, ulong recnum);
ulong tdbio_new_recnum (ctrl_t ctrl);
-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);
+gpg_error_t tdbio_search_trust_byfpr (ctrl_t ctrl, const byte *fingerprint,
+ TRUSTREC *rec);
+gpg_error_t tdbio_search_trust_bypk (ctrl_t ctrl, PKT_public_key *pk,
+ TRUSTREC *rec);
void tdbio_how_to_fix (void);
void tdbio_invalid(void);