From 7b15186ff813651c83df1d359f25d4260bdab2b3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 Nov 2015 21:27:24 +0100 Subject: skeleton for #4074 --- src/backend/taler-merchant-httpd_auditors.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/backend/taler-merchant-httpd_auditors.c') diff --git a/src/backend/taler-merchant-httpd_auditors.c b/src/backend/taler-merchant-httpd_auditors.c index f30b11ee..480c4bb1 100644 --- a/src/backend/taler-merchant-httpd_auditors.c +++ b/src/backend/taler-merchant-httpd_auditors.c @@ -61,6 +61,30 @@ static unsigned int nauditors; json_t *j_auditors; +/** + * Check if the given @a dk issued by mint @a mh is audited by + * an auditor that is acceptable for this merchant. (And if the + * denomination is not yet expired or something silly like that.) + * + * @param mh mint issuing @a dk + * @param dk a denomination issued by @a mh + * @return #GNUNET_OK if we accept this denomination + */ +int +TMH_AUDITORS_check_dk (struct TALER_MINT_Handle *mh, + struct TALER_MINT_DenomPublicKey *dk) +{ + // First, we should probably check to see if dk is expired. + // + // We should find out which auditors have signed off on this + // dk, and if there is any overlap with the auditors we accept; + // alternatively, if the given mint is flagged as trusted, we + // also accept this. + GNUNET_break (0); // NOT IMPLEMENTED, warn! #4074 + return GNUNET_OK; /* stop-gap for now */ +} + + /** * Function called on each configuration section. Finds sections * about auditors and parses the entries. -- cgit v1.2.3