diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-27 21:27:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-27 21:27:24 +0100 |
commit | 7b15186ff813651c83df1d359f25d4260bdab2b3 (patch) | |
tree | c38f3863cae7e9995be61fc5c49eb9b343c5d0f1 /src/backend/taler-merchant-httpd_auditors.c | |
parent | 01a2b9c7d04622dac342c36225198c1beaba2ec3 (diff) | |
download | merchant-7b15186ff813651c83df1d359f25d4260bdab2b3.tar.gz merchant-7b15186ff813651c83df1d359f25d4260bdab2b3.tar.bz2 merchant-7b15186ff813651c83df1d359f25d4260bdab2b3.zip |
skeleton for #4074
Diffstat (limited to 'src/backend/taler-merchant-httpd_auditors.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_auditors.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ -62,6 +62,30 @@ 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. * |