diff options
author | Werner Koch <wk@gnupg.org> | 2016-05-21 11:41:49 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-05-21 11:41:49 +0200 |
commit | 027c4e55522b8e18711a3331932a9869ab89ca26 (patch) | |
tree | dd8508b06d19c8a47e4a159c71adb448b80e1a64 /g10/test-stubs.c | |
parent | gpg: Fix the TOFU_STATS_LONG status. (diff) | |
download | gnupg2-027c4e55522b8e18711a3331932a9869ab89ca26.tar.xz gnupg2-027c4e55522b8e18711a3331932a9869ab89ca26.zip |
gpg: Pass CTRL object down to the trust functions
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r-- | g10/test-stubs.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/g10/test-stubs.c b/g10/test-stubs.c index 2edae1808..177f35acd 100644 --- a/g10/test-stubs.c +++ b/g10/test-stubs.c @@ -58,8 +58,9 @@ g10_exit( int rc ) * this utility assumes that all keys in the keyring are trustworthy */ int -check_signatures_trust( PKT_signature *sig ) +check_signatures_trust (ctrl_t ctrl, PKT_signature *sig) { + (void)ctrl; (void)sig; return 0; } @@ -91,22 +92,25 @@ cache_disabled_value(PKT_public_key *pk) } void -check_trustdb_stale(void) +check_trustdb_stale (ctrl_t ctrl) { + (void)ctrl; } int -get_validity_info (PKT_public_key *pk, PKT_user_id *uid) +get_validity_info (ctrl_t ctrl, PKT_public_key *pk, PKT_user_id *uid) { + (void)ctrl; (void)pk; (void)uid; return '?'; } unsigned int -get_validity (PKT_public_key *pk, PKT_user_id *uid, PKT_signature *sig, - int may_ask) +get_validity (ctrl_t ctrl, PKT_public_key *pk, PKT_user_id *uid, + PKT_signature *sig, int may_ask) { + (void)ctrl; (void)pk; (void)uid; (void)sig; @@ -122,8 +126,9 @@ trust_value_to_string (unsigned int value) } const char * -uid_trust_string_fixed (PKT_public_key *key, PKT_user_id *uid) +uid_trust_string_fixed (ctrl_t ctrl, PKT_public_key *key, PKT_user_id *uid) { + (void)ctrl; (void)key; (void)uid; return "err"; |