summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-29 16:21:10 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-29 16:21:10 +0100
commit6b434c626f6335f8174e0164ead61b3874752c4a (patch)
treef26d256d8912721de26413ef259975112aab4e09 /src/include
parent3240844e48dc62b80c6167558677bcd7b83dd3c0 (diff)
downloadexchange-6b434c626f6335f8174e0164ead61b3874752c4a.tar.gz
exchange-6b434c626f6335f8174e0164ead61b3874752c4a.tar.bz2
exchange-6b434c626f6335f8174e0164ead61b3874752c4a.zip
work on DB logic, add auditor_name to /management/auditors API
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchange_service.h2
-rw-r--r--src/include/taler_exchangedb_plugin.h10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 4ad05a688..19017eac1 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -2346,6 +2346,7 @@ struct TALER_EXCHANGE_ManagementAuditorEnableHandle;
* @param url HTTP base URL for the exchange
* @param auditor_pub the public signing key of the auditor
* @param auditor_url base URL of the auditor
+ * @param auditor_name human readable name for the auditor
* @param validity_start when was this decided?
* @param master_sig signature affirming the auditor addition
* @param cb function to call with the exchange's result
@@ -2358,6 +2359,7 @@ TALER_EXCHANGE_management_enable_auditor (
const char *url,
const struct TALER_AuditorPublicKeyP *auditor_pub,
const char *auditor_url,
+ const char *auditor_name,
struct GNUNET_TIME_Absolute validity_start,
const struct TALER_MasterSignatureP *master_sig,
TALER_EXCHANGE_ManagementAuditorEnableCallback cb,
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 400d6a723..0f5e693d5 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2997,9 +2997,9 @@ struct TALER_EXCHANGEDB_Plugin
* @param session a session
* @param auditor_pub key of the auditor
* @param auditor_url base URL of the auditor's REST service
+ * @param auditor_name name of the auditor (for humans)
* @param start_date date when the auditor was added by the offline system
* (only to be used for replay detection)
- * @param master_sig signature affirming the addition of the auditor
* @return transaction status code
*/
enum GNUNET_DB_QueryStatus
@@ -3007,8 +3007,8 @@ struct TALER_EXCHANGEDB_Plugin
struct TALER_EXCHANGEDB_Session *session,
const struct TALER_AuditorPublicKeyP *auditor_pub,
const char *auditor_url,
- struct GNUNET_TIME_Absolute start_date,
- const struct TALER_MasterSignatureP *master_sig);
+ const char *auditor_name,
+ struct GNUNET_TIME_Absolute start_date);
/**
@@ -3018,9 +3018,9 @@ struct TALER_EXCHANGEDB_Plugin
* @param session a session
* @param auditor_pub key of the auditor (primary key for the existing record)
* @param auditor_url base URL of the auditor's REST service, to be updated
+ * @param auditor_name name of the auditor (for humans)
* @param change_date date when the auditor status was last changed
* (only to be used for replay detection)
- * @param master_sig signature affirming the change in status (enable or disable)
* @param enabled true to enable, false to disable
* @return transaction status code
*/
@@ -3029,8 +3029,8 @@ struct TALER_EXCHANGEDB_Plugin
struct TALER_EXCHANGEDB_Session *session,
const struct TALER_AuditorPublicKeyP *auditor_pub,
const char *auditor_url,
+ const char *auditor_name,
struct GNUNET_TIME_Absolute change_date,
- const struct TALER_MasterSignatureP *master_sig,
bool enabled);